- static inline void *kzalloc(size_t size, gfp_t flags): allocate memory. The memory is set to zero.
- Flag:
flags: same as kmalloc, see kmalloc
static inline void *kzalloc(size_t size, gfp_t flags)
{
return kmalloc(size, flags | __GFP_ZERO);
}
Reference:
include/linux/slab.h
沒有留言:
張貼留言