函数源码 |
Source File:mm\percpu-stats.c |
Create Date:2022-07-27 18:11:19 |
首页 | Copyright©Brick |
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | /* * Iterates over all chunks to find the max nr_alloc entries. */ static int find_max_nr_alloc( void ) { struct pcpu_chunk *chunk; int slot, max_nr_alloc; max_nr_alloc = 0; for (slot = 0; slot < pcpu_nr_slots; slot++) list_for_each_entry(chunk, &pcpu_slot[slot], list) max_nr_alloc = max(max_nr_alloc, chunk->nr_alloc); return max_nr_alloc; } |