Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cpumask.c Create Date:2022-07-28 06:16:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pumask_next_wrap - helper to implement for_each_cpu_wrap*@n: the cpu prior to the place to search*@mask: the cpumask pointer*@start: the start point of the iteration*@wrap: assume @n crossing @start terminates the iteration* Returns >= nr_cpu_ids on

Proto:int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap)

Type:int

Parameter:

TypeParameterName
intn
const struct cpumask *mask
intstart
boolwrap
81  again :
82  next = 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.
84  If wrap && n < start && next >= start Then
85  Return nr_cpumask_bits
87  Else if next >= nr_cpumask_bits Then
88  wrap = true
89  n = -1
90  Go to again
93  Return next