9 #define CACHE_PAGE_SIZE 256
10 #define CACHE_NAME_LEN 16
12 #define CACHE_OPT_NONE 0
19 unsigned short objsize;
20 unsigned short objnum;
21 unsigned short page_order;
25 char name[CACHE_NAME_LEN];
29 unsigned long free_bitmap[1];
48 void (*ctor)(
void *));
66 void kmem_cache_init(
void);
void kmem_cache_free(struct kmem_cache *cache, void *obj)
Free the allocated slab memory.
Definition: slab.c:165
void * kmem_cache_alloc(struct kmem_cache *cache, unsigned long flags)
Allocate a new slab memory.
Definition: slab.c:106
struct kmem_cache * kmem_cache_create(const char *name, size_t size, size_t align, unsigned long flags, void(*ctor)(void *))
Create a new slab cache.
Definition: slab.c:42