Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-stats.c Create Date:2022-07-28 16:35:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Iterates over all chunks to find the max nr_alloc entries.

Proto:static int find_max_nr_alloc(void)

Type:int

Parameter:Nothing

38  max_nr_alloc = 0
39  When slot < pcpu_nr_slots cycle list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(chunk, & pcpu_slot[slot], list)
41  max_nr_alloc = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(max_nr_alloc, nr_alloc)
43  Return max_nr_alloc
Caller
NameDescribe
percpu_stats_show