KFunc bpf_cpumask_acquire
Acquire a reference to a BPF CPU-mask.
Definition
Acquires a reference to a BPF CPU-mask. The CPU-mask returned by this function
must either be embedded in a map as a kptr, or freed with
bpf_cpumask_release()
.
struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *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