Skip to content

KFunc scx_bpf_get_idle_cpumask

v6.12

This function gets a referenced kptr to the idle-tracking per-CPU cpumask.

Definition

Returns

NULL if idle tracking is not enabled, or running on a UP kernel.

Signature

const struct cpumask *scx_bpf_get_idle_cpumask()

Note

This kfunc returns a pointer to a refcounted object. The verifier will then ensure that the pointer to the object is eventually released using a release kfunc, or transferred to a map using a referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the loading of the BPF program until no lingering references remain in all possible explored states of the program.

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