Skip to content

KFunc scx_bpf_get_possible_cpumask

v6.12

This function gets a referenced kptr to cpu_possible_mask.

Definition

Signature

const struct cpumask *scx_bpf_get_possible_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