bpf_cpumask_clear(9)
π bpf_cpumask_clear β bestie edition
okay so real talk, this is bpf_cpumask_clear(9) straight out of the Kernel API Manual, and it is genuinely one of the simplest little icons in the whole BPF cpumask family. no cap. she justβ¦ clears stuff β¨
πΈ NAME πΈ
bpf_cpumask_clear β clears, like, all of the bits in a BPF cpumask. every single one. gone. π
π SYNOPSIS π
__bpf_kfunc void bpf_cpumask_clear (struct bpf_cpumask *cpumask );
yep that's the whole signature, copy it exactly, she's sensitive about her whitespace π«Ά
π ARGUMENTS π
cpumaskβ the BPF cpumask that's getting cleared. that's it. that's the argument. she's the main character here and she is about to be empty πΈ
β¨ SEE ALSO β¨
the whole friend group, fr fr. all of these live in the kernel file ./kernel/bpf/cpumask.c:
struct bpf_cpumask(9)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_clear_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_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)
lowkey go read bpf_cpumask_setall(9) right after this one, she's the exact opposite energy and together they're a whole vibe check π₯
mwah π that's the page! this lil beauty ships from ./kernel/bpf and is dated October 2026, so go forth and clear those 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