Chapter 5. Memory Management in Linux

Table of Contents

The Slab Cache
User Space Memory Access
More Memory Management Functions

Table of Contents

kcalloc - allocate memory for an array. The memory is set to zero.
kmalloc - allocate memory
kzalloc - allocate memory. The memory is set to zero.
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_zalloc - Allocate an object. The memory is set to zero.
krealloc - reallocate memory. The contents will remain unchanged.
kmem_cache_free - Deallocate an object
kfree - free previously allocated memory