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)
kmem_cache_t* kmem_cache_create | ( | const char * | name, | |
size_t | size, | |||
size_t | offset, | |||
unsigned long | flags, | |||
void(*)(void *, kmem_cache_t *, unsigned long) | ctor, | |||
void(*)(void *, kmem_cache_t *, unsigned long) | dtor | |||
) |