Skip to content

KFunc bpf_cpumask_subset

v6.3

Check if a CPU-mask is a subset of another.

Definition

src1: The first CPU-mask being checked as a subset. src2: The second CPU-mask being checked as a superset.

Return: * true - All of the bits of src1 are set in src2. * false - At least one bit in src1 is not set in src2.

struct bpf_cpumask pointers may be safely passed to src1 and src2.

bool bpf_cpumask_subset(const struct cpumask *src1, const struct cpumask *src2)

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