bpf_cpumask_set_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bpf_cpumask_set_cpu(9) β€” Kernel API Manual

okay so bestie, welcome to the glow-up era of bpf_cpumask_set_cpu πŸ’– this is a page straight outta the Kernel API Manual, and it's literally about flipping one (1) single bit on for a CPU inside a BPF cpumask. that's it. that's the whole job. iconic, honestly πŸŽ€


✨ NAME ✨

bpf_cpumask_set_cpu β€” set a bit for a CPU in a BPF cpumask πŸ¦‹

like, you point at a CPU, you point at a cpumask, and boom β€” that CPU's bit is now on. no cap.


🌸 SYNOPSIS 🌸

__bpf_kfunc void bpf_cpumask_set_cpu (u32 cpu , struct bpf_cpumask
*cpumask );

she returns void, she's __bpf_kfunc, she takes exactly two things and she is NOT interested in anything else πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU you want to be set in the cpumask. yes, that CPU. the one. the main character πŸ‘‘
  • cpumask β€” the BPF cpumask where the bit is actually getting set. this is the canvas, the cpu is the paint πŸ–ŒοΈ

πŸ”₯ SEE ALSO πŸ”₯

okay this is the friend group, and they ALL show up, so let me introduce every single one, no skips, no cuts, fr fr:

like… the whole squad 🫢 go read them too, iykyk.


lowkey reminder: this page is just "set a bit." if you wanted "clear a bit," "test a bit," or "do both at once," that's a different friend up in SEE ALSO. don't come for me πŸ’€

and that's the page!! sending you off with the vibe check: it's from ./kernel/bpf, dated October 2026, and it lives under the name bpf_cpumask_set_cpu(9) πŸŒˆπŸ’œ slay, go set some bits, and remember β€” one CPU, one bit, one legend. periodt. ✨🧚

πŸ“¦ where this page comes from