1KMEM_CACHE_ALLOC(9) Memory Management in Linux KMEM_CACHE_ALLOC(9)
23
4
NAME
6kmem_cache_alloc - Allocate an object
7
SYNOPSIS
9void * kmem_cache_alloc(struct kmem_cache * cachep, gfp_t flags);
10
ARGUMENTS
12cachep
13The cache to allocate from.
1415
flags
16See kmalloc.
17
DESCRIPTION
19Allocate an object from this cache. The flags are only relevant if the
20cache has no available objects.
21
COPYRIGHT
23Kernel Hackers Manual 2.6. November 2011 KMEM_CACHE_ALLOC(9)