Functions | |
| kmem_cache_t * | kmem_cache_create (const char *name, size_t size, size_t offset, unsigned long flags, void(*ctor)(void *, kmem_cache_t *, unsigned long), void(*dtor)(void *, kmem_cache_t *, unsigned long)) |
| Create slab cache. | |
| int | kmem_cache_destroy (kmem_cache_t *kcache) |
| Finalize slab cache. | |
| void * | kmem_cache_alloc (kmem_cache_t *kcache, int flags) |
| Allocate slab in cache. | |
| void | kmem_cache_free (kmem_cache_t *kcache, void *objp) |
| Free slab in cache. | |
There are some limitations/constraints:
Requirements: (additionally to Global Requirements)
|
||||||||||||||||||||||||||||
|
Create slab cache. It's from mm/slab.c constraints:
Definition at line 96 of file slab.c. References alloc_grow(), DEBUG_SLAB, and vmalloc(). |