Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/mm/
Dmm-stat.c17 extern const struct slab kmalloc_cache_group[16];
122 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_free()
124 result += kmalloc_cache_group[i].size * kmalloc_cache_group[i].count_total_free; in __count_kmalloc_free()
137 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_using()
139 result += kmalloc_cache_group[i].size * kmalloc_cache_group[i].count_total_using; in __count_kmalloc_using()
152 for (int i = 0; i < sizeof(kmalloc_cache_group) / sizeof(struct slab); ++i) in __count_kmalloc_total()
154 …result += kmalloc_cache_group[i].size * (kmalloc_cache_group[i].count_total_free + kmalloc_cache_g… in __count_kmalloc_total()
Dslab.c4 struct slab kmalloc_cache_group[16] = variable
354 spin_init(&kmalloc_cache_group[i].lock); in slab_init()
356kmalloc_cache_group[i].cache_pool_entry = (struct slab_obj *)memory_management_struct.end_of_struc… in slab_init()
360 list_init(&kmalloc_cache_group[i].cache_pool_entry->list); in slab_init()
363 kmalloc_cache_group[i].cache_pool_entry->count_using = 0; in slab_init()
364kmalloc_cache_group[i].cache_pool_entry->count_free = PAGE_2M_SIZE / kmalloc_cache_group[i].size; in slab_init()
365kmalloc_cache_group[i].cache_pool_entry->bmp_len = (((kmalloc_cache_group[i].cache_pool_entry->cou… in slab_init()
366kmalloc_cache_group[i].cache_pool_entry->bmp_count = kmalloc_cache_group[i].cache_pool_entry->coun… in slab_init()
369 kmalloc_cache_group[i].cache_pool_entry->bmp = (ul *)memory_management_struct.end_of_struct; in slab_init()
372 …ruct.end_of_struct = (ul)(memory_management_struct.end_of_struct + kmalloc_cache_group[i].cache_po… in slab_init()
[all …]