Chapter 4. Memory Management in Linux

4.1. The Slab Cache

Table of Contents
kmem_cache_create --  Create a cache.
kmem_cache_shrink --  Shrink a cache.
kmem_cache_destroy --  delete a cache
kmem_cache_alloc --  Allocate an object
kmem_cache_alloc_node --  Allocate an object on the specified node
__kmalloc --  allocate memory
__alloc_percpu --  allocate one copy of the object for every present
kmem_cache_free --  Deallocate an object
kcalloc --  allocate memory for an array. The memory is set to zero.
kfree --  free previously allocated memory
free_percpu --  free previously allocated percpu memory