bpf_cpumask_...nd_clear_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ bpf_cpumask_...nd_clear_cpu(9) πŸ¦‹

okay so bestie, welcome to the Kernel API Manual β€” this page is all about bpf_cpumask_test_and_clear_cpu, and it's giving "atomic little vibe check on a BPF cpumask" energy. no cap, every detail is right here. πŸ’–


✨ NAME ✨

bpf_cpumask_test_and_clear_cpu β€” atomically test and clear a CPU in a BPF cpumask. periodt. πŸ’…

🌸 SYNOPSIS 🌸

__bpf_kfunc bool bpf_cpumask_test_and_clear_cpu (u32 cpu , struct bpf_cpumask *cpumask );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU being cleared and queried for. yes, both at once, main character energy. πŸ”₯
  • cpumask β€” the BPF cpumask being cleared and queried for containing a CPU. 🫢

πŸ’… RETURN πŸ’…

  • true β€” cpu is set in the cpumask. βœ…
  • false β€” cpu was not set in the cpumask, or cpu is invalid. 😭

🌈 SEE ALSO 🌈

Kernel file ./kernel/bpf/cpumask.c and these iconique friends:


okay bye bestie! 🫢 this page comes from ./kernel/bpf, dated October 2026, and its manual page name is bpf_cpumask_...nd_clear_cpu(9). slay, go test and clear those CPUs atomically. πŸ’–βœ¨

πŸ“¦ where this page comes from