Searched refs:slab_pool (Results 1 – 2 of 2) sorted by relevance
35 struct slab *slab_pool = (struct slab *)kmalloc(sizeof(struct slab), 0); in slab_create() local38 if (slab_pool == NULL) in slab_create()44 memset(slab_pool, 0, sizeof(struct slab)); in slab_create()46 slab_pool->size = SIZEOF_LONG_ALIGN(size); in slab_create()47 slab_pool->count_total_using = 0; in slab_create()48 slab_pool->count_total_free = 0; in slab_create()50 slab_pool->cache_pool_entry = (struct slab_obj *)kmalloc(sizeof(struct slab_obj), 0); in slab_create()53 if (slab_pool->cache_pool_entry == NULL) in slab_create()56 kfree(slab_pool); in slab_create()59 memset(slab_pool->cache_pool_entry, 0, sizeof(struct slab_obj)); in slab_create()[all …]
100 ul slab_destroy(struct slab *slab_pool);109 void *slab_malloc(struct slab *slab_pool, ul arg);119 ul slab_free(struct slab *slab_pool, void *addr, ul arg);