Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-28 09:44:07
Last Modify:2020-03-17 13:39:02 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 *sched_debug_start(struct seq_file *file, loff_t *offset)

Type:void

Parameter:

TypeParameterName
struct seq_file *file
loff_t *offset
768  n = offset
770  If n == 0 Then Return 1
773  n--
775  If n > 0 Then n = pumask_next - get the next cpu in a cpumask*@n: the cpu prior to the place to search (ie. return will be > @n)*@srcp: the cpumask pointer* Returns >= nr_cpu_ids if no further cpus set.
777  Else n = Uniprocessor. Assume all masks are "1".
780  offset = n + 1
782  If n < nr_cpu_ids Then Return n + 2
785  Return NULL
Caller
NameDescribe
sched_debug_next