函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\stats.c Create Date:2022-07-27 10:44:11
Last Modify:2020-03-12 14:18:49 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 *schedstat_start(struct seq_file *file, loff_t *offset)

返回类型:void

参数:

类型参数名称
struct seq_file *file
loff_t *offset
85  n等于offset
87  如果n恒等于0则返回:1
90  n自减
92  如果n大于0则n等于Valid inputs for n are -1 and 0.
94  否则n等于Uniprocessor. Assume all masks are "1".
97  offset等于n加1
99  如果n小于nr_cpu_ids则返回:n加2
102  返回:NULL
调用者
名称描述
schedstat_next