Skip to content

SCX eBPF macro cast_mask

v6.12

The cast_mask macro casts a BPF cpumask to a regular cpumask.

Definition

static __always_inline const struct cpumask *cast_mask(struct bpf_cpumask *mask)
{
    return (const struct cpumask *)mask;
}

Usage

For when you have a struct bpf_cpumask and need a struct cpumask.

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome