函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-27 10:44:33
Last Modify:2020-03-17 13:39:02 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static void *sched_debug_start(struct seq_file *file, loff_t *offset)

返回类型:void

参数:

类型参数名称
struct seq_file *file
loff_t *offset
768  n等于offset
770  如果n恒等于0则返回:1
773  n自减
775  如果n大于0则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  否则n等于Uniprocessor. Assume all masks are "1".
780  offset等于n加1
782  如果n小于nr_cpu_ids则返回:n加2
785  返回:NULL
调用者
名称描述
sched_debug_next