bpf_cpumask_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bpf_cpumask_or(9) β€” the kernel API manual, bestie edition

okay so real talk, this is bpf_cpumask_or(9) from the kernel API manual, and it's lowkey one of the most satisfying little functions ever. it takes two cpumasks, ORs them together, and drops the result somewhere. that's it. that's the whole vibe. ✨


🌸 NAME 🌸

bpf_cpumask_or β€” OR two cpumasks and store the result. literally just vibes and bitwise logic, no cap.


✨ SYNOPSIS ✨

__bpf_kfunc void bpf_cpumask_or (struct bpf_cpumask *dst , const struct cpumask *src1 , const struct cpumask *src2 );

she takes three pointers and returns void. no notes. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” the BPF cpumask where the result is being stored. this is the main character, the one who gets to keep the answer. πŸ’–
  • src1 β€” the first input. the og.
  • src2 β€” the second input. the plus-one. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

you know how OR works, right? bestie, you do. you take two things, and if either of them is on, the result is on. iconic behaviour honestly.

and the fun part? struct bpf_cpumask pointers may be safely passed to src1 and src2. yes, safely. as in, you're not gonna blow up in your own face. go off. πŸ”₯

ngl, "safely passed" is doing a lot of heavy lifting here β€” it's the one caveat this manpage gives you, so don't get weird with it. πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

that's the whole friend group right there β€” go say hi. 🌈


okay that's the page!! this lil icon lives in ./kernel/bpf, and the version notes are dated October 2026 β€” so mark your calendar, screenshot the group chat, and stan a genuinely unbothered bitwise kfunc. bye bestie, love u, hydrate πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from