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:verify cpu argument to cpumask_* operators

Proto:static inline unsigned int cpumask_check(unsigned int cpu)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intcpu
144  cpu_max_bits_warn(cpu, nr_cpumask_bits)
145  Return cpu
Caller
NameDescribe
cpumask_nextpumask_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.
cpumask_next_andpumask_next_and - get the next cpu in *src1p & *src2p*@n: the cpu prior to the place to search (ie. return will be > @n)*@src1p: the first cpumask pointer*@src2p: the second cpumask pointer* Returns >= nr_cpu_ids if no further cpus set in both.
cpumask_any_butpumask_any_but - return a "random" in a cpumask, but not this one.*@mask: the cpumask to search*@cpu: the cpu to ignore.* Often used to find any cpu but smp_processor_id() in a mask.* Returns >= nr_cpu_ids if no cpus set.
cpumask_set_cpupumask_set_cpu - set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
__cpumask_set_cpu
cpumask_clear_cpupumask_clear_cpu - clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@dstp: the cpumask pointer
__cpumask_clear_cpu
cpumask_test_cpupumask_test_cpu - test for a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in @cpumask, else returns 0
cpumask_test_and_set_cpupumask_test_and_set_cpu - atomically test and set a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in old bitmap of @cpumask, else returns 0* test_and_set_bit wrapper for cpumasks.
cpumask_test_and_clear_cpupumask_test_and_clear_cpu - atomically test and clear a cpu in a cpumask*@cpu: cpu number (< nr_cpu_ids)*@cpumask: the cpumask pointer* Returns 1 if @cpu is set in old bitmap of @cpumask, else returns 0* test_and_clear_bit wrapper for cpumasks.