Skip to content

KFunc bpf_cpumask_first

v6.3

Get the index of the first nonzero bit in the CPU-mask.

Definition

Find the index of the first nonzero bit of the CPU-mask. A struct bpf_cpumask pointer may be safely passed to this function.

u32 bpf_cpumask_first(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