函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cpumask.h Create Date:2022-07-27 06:38:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Valid inputs for n are -1 and 0.

函数原型:static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)

返回类型:unsigned int

参数:

类型参数名称
intn
const struct cpumask *srcp
163  返回:n加1
调用者
名称描述
c_start
schedstat_startThis 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.
seq_hlist_next_percpuseq_hlist_next_percpu - move to the next position of the percpu hlist array*@v: pointer to current hlist_node*@head: pointer to percpu array of struct hlist_heads*@cpu: pointer to cpu "cursor"*@pos: start position of sequence