kmem_cache_zalloc(9)

kmem_cache_zalloc9

Allocate an object. the memory is set to zero.

Usage

void * kmem_cache_zalloc(struct kmem_cache * cache, gfp_t flags);

Arguments

cache

The cache to allocate from.

flags

See kmalloc.

Overview

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.

From linux-manual-2.6.18 2.6.18.dfsg.1-26etch2 in Debian 4.0 (Etch). Parsed by carta from the page's man source.