title | description |
---|---|
KFunc 'bpf_cpumask_subset' |
This page documents the 'bpf_cpumask_subset' eBPF kfunc, including its defintion, usage, program types that can use it, and examples. |
Check if a cpumask is a subset of another.
src1
: The first cpumask being checked as a subset.
src2
: The second cpumask being checked as a superset.
Return:
true
- All of the bits ofsrc1
are set insrc2
.false
- At least one bit insrc1
is not set insrc2
.
struct bpf_cpumask
pointers may be safely passed to src1
and src2
.
#!c bool bpf_cpumask_subset(const struct cpumask *src1, const struct cpumask *src2)
!!! example "Docs could be improved" This part of the docs is incomplete, contributions are very welcome
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