Skip to content

KFunc bpf_cpumask_and

v6.3

AND two CPU-masks and store the result.

Definition

dst: The BPF CPU-mask where the result is being stored. src1: The first input. src2: The second input.

Return: * true - dst has at least one bit set following the operation * false - dst is empty following the operation

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

bool bpf_cpumask_and(struct bpf_cpumask *dst, 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