bpf_cpumask_clear_cpu(9)
π bpf_cpumask_clear_cpu(9) β a Kernel API Manual moment
okay bestie, so this is bpf_cpumask_clear_cpu(9) from the Kernel API Manual, and it's literally a one-job icon: it clears the bit for a CPU in a BPF cpumask. that's the whole vibe. π
β¨ NAME β¨
bpf_cpumask_clear_cpu β clear a bit for a CPU in a BPF cpumask. that's it, that's the function, she's focused and she's serving π«Ά
πΈ SYNOPSIS πΈ
__bpf_kfunc void bpf_cpumask_clear_cpu (u32 cpu , struct bpf_cpumask *cpumask );
look at her. __bpf_kfunc, returns void, two args. no notes. π
π¦ ARGUMENTS π¦
cpuβ the CPU to be cleared from the cpumask. like, this specific CPU's bit is getting yeeted out of the mask. bye boo πcpumaskβ the BPF cpumask in which a bit is being cleared. this is the mask that's getting edited, and yeah, she's the main character here π
π SEE ALSO π
okay this is the friend group, and honestly they're all iconic. first up, the kernel file itself: ./kernel/bpf/cpumask.c, plus struct bpf_cpumask(9), and then the whole squad:
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_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_xor(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)
ngl, bpf_cpumask_set_cpu(9) is literally her counterpart β one sets, one clears, it's giving duality π and bpf_cpumask_test_and_clear_cpu(9) is the combo meal if you wanna check and clear, iykyk π
fr fr, if you're clearing a bit, make sure that mask is actually somewhere you're allowed to be touching. this page won't hold your hand on that one π«Ά
okay that's the whole page, no cap β and before you go, the receipts: this one lives under ./kernel/bpf, it's the October 2026 edition of bpf_cpumask_clear_cpu(9). go clear some bits bestie, you're gonna slay πβ¨ππ¦
π¦ 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