Skip to content

KFunc bpf_cpumask_weight

v6.8

Return the number of bits in cpumask.

Definition

cpumask: The cpumask being queried.

Count the number of set bits in the given cpumask.

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