bpf_cpumask_xor(9)
π bpf_cpumask_xor(9) β kernel API manual, bestie edition
okay so you found the page for bpf_cpumask_xor, and honestly? it's a lil icon. it lives in the Kernel API Manual, and by the end of this you're gonna be XOR-ing cpumasks like it's nothing. periodt. β¨
πΈ NAME πΈ
bpf_cpumask_xor β XOR two cpumasks and store the result.
like, it takes two cpumasks, does the exclusive-or thing, and drops the answer somewhere. no cap, that's the whole vibe.
π¦ SYNOPSIS π¦
__bpf_kfunc void bpf_cpumask_xor (struct bpf_cpumask *dst , const struct
cpumask *src1 , const struct cpumask *src2 );
look at her. three params, returns void, __bpf_kfunc and all. copy it exactly, don't get cute with it π
π ARGUMENTS π
dstβ the BPF cpumask where the result is being stored. that's the glow-up location, the place the answer moves into πsrc1β the first input. one half of the equation, bestie.src2β the second input. the other half. together they make magic β¨
π§ DESCRIPTION π§
so here's the tea: struct bpf_cpumask pointers may be safely passed to src1 and src2. that's it, that's the whole note β but it's an important one, so don't skip it π
like, fr fr, you can hand a struct bpf_cpumask over as either input and it's all good. the manpage says so, so we say so. π
π SEE ALSO π
the whole friend group, in the order the page lists them:
- Kernel file
./kernel/bpf/cpumask.cstruct bpf_cpumask(9) bpf_cpumask_create(9)bpf_cpumask_acquire(9)bpf_cpumask_release(9)bpf_cpumask_first(9)bpf_cpumask_first_zero(9)bpf_cpumask_first_and(9)bpf_cpumask_set_cpu(9)bpf_cpumask_clear_cpu(9)bpf_cpumask_test_cpu(9)bpf_cpumask_test_and_set_cpu(9)bpf_cpumask_test_and_clear_cpu(9)bpf_cpumask_setall(9)bpf_cpumask_clear(9)bpf_cpumask_and(9)bpf_cpumask_or(9)bpf_cpumask_equal(9)bpf_cpumask_intersects(9)bpf_cpumask_subset(9)bpf_cpumask_empty(9)bpf_cpumask_full(9)bpf_cpumask_copy(9)bpf_cpumask_any_distribute(9)bpf_cpumask_any_and_distribute(9)bpf_cpumask_weight(9)bpf_cpumask_populate(9)
go read them all, you'll be so smart. iykyk π§ π
that's the whole page, bestie. shoutout to ./kernel/bpf for shipping it and to the October 2026 release notes for the timestamp β mwah, iconic, no notes π«Άπβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms