Skip to content

KFunc bpf_cpumask_set_cpu

v6.3

Set a bit for a CPU in a BPF CPU-mask.

Definition

cpu: The CPU to be set in the CPU-mask.

cpumask: The BPF CPU-mask in which a bit is being set.

void bpf_cpumask_set_cpu(u32 cpu, struct bpf_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