Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cpumask.h Create Date:2022-07-28 05:34:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Valid inputs for n are -1 and 0.

Proto:static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)

Type:unsigned int

Parameter:

TypeParameterName
intn
const struct cpumask *srcp
163  Return n + 1
Caller
NameDescribe
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