KFunc bpf_cpumask_test_cpu
Test whether a CPU is set in a CPU-mask.
Definition
cpu
: The CPU being queried for.
cpumask
: The CPU-mask being queried for containing a CPU.
Return:
* true
- cpu
is set in the CPU-mask
* false
- cpu
was not set in the CPU-mask, or cpu
is an invalid cpu.
bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask)
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome