bpf_cpumask_xor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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