Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\stats.c Create Date:2022-07-28 09:43:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:This itererator needs some explanation.* It returns 1 for the header position.* This means 2 is cpu 0.* In a hotplugged system some CPUs, including cpu 0, may be missing so we have* to use cpumask_* to iterate over the CPUs.

Proto:static void *schedstat_start(struct seq_file *file, loff_t *offset)

Type:void

Parameter:

TypeParameterName
struct seq_file *file
loff_t *offset
85  n = offset
87  If n == 0 Then Return 1
90  n--
92  If n > 0 Then n = Valid inputs for n are -1 and 0.
94  Else n = Uniprocessor. Assume all masks are "1".
97  offset = n + 1
99  If n < nr_cpu_ids Then Return n + 2
102  Return NULL
Caller
NameDescribe
schedstat_next