分类: LINUX
2009-12-22 08:36:34
299/** 300 * kzalloc - allocate memory. The memory is set to zero. 301 * @size: how many bytes of memory are required. 302 * @flags: the type of memory to allocate (see kmalloc). 303 */ 304static void *( , ) 305{ 306 return (, | ); 307}
从注释也可以知道,就是在进行内存块的时候,同时用0进行初始化,比先用kmalloc申请内存然后用memset进行初始化方便多了。