Home
last modified time | relevance | path

Searched refs:cache_pool_entry (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.5/kernel/src/mm/
Dslab.c50 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()
59 memset(slab_pool->cache_pool_entry, 0, sizeof(struct slab_obj)); in slab_create()
68 list_init(&slab_pool->cache_pool_entry->list); in slab_create()
71 slab_pool->cache_pool_entry->page = alloc_pages(ZONE_NORMAL, 1, PAGE_KERNEL); in slab_create()
74 if (slab_pool->cache_pool_entry->page == NULL) in slab_create()
77 kfree(slab_pool->cache_pool_entry); in slab_create()
84 slab_pool->cache_pool_entry->count_using = 0; in slab_create()
85 slab_pool->cache_pool_entry->count_free = PAGE_2M_SIZE / slab_pool->size; in slab_create()
87 slab_pool->count_total_free = slab_pool->cache_pool_entry->count_free; in slab_create()
[all …]
Dslab.h42 struct slab_obj *cache_pool_entry; member