Skip to content

KFunc bpf_cpumask_empty

v6.3

Check if a CPU-mask is empty.

Definition

cpumask: The CPU-mask being checked.

Return: * true - None of the bits in cpumask are set. * false - At least one bit in cpumask is set.

A struct bpf_cpumask pointer may be safely passed to cpumask.

bool bpf_cpumask_empty(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