Name
kmem_cache_zalloc —
Allocate an object. The memory is set to zero.
Synopsis
void * kmem_cache_zalloc (
struct kmem_cache * cache, gfp_t flags)
;
Arguments
cache
The cache to allocate from.
flags
See kmalloc
.
Description
Allocate an object from this cache and set the allocated memory to zero.
The flags are only relevant if the cache has no available objects.