cpumask_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cpumask_empty πŸ’– (section 9, from the Kernel API Manual, bestie)

Okay so listen β€” this one is short and it slays. Literally the whole job is answering one question: is this cpu mask empty or not? That's it. That's the function. No cap. ✨


🌸 NAME 🌸

cpumask_empty β€” literally just *srcp == 0 🫢

πŸŽ€ SYNOPSIS πŸŽ€

bool cpumask_empty (const struct cpumask *srcp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • srcp β€” the cpumask you're passing in, bestie: the one where all the cpus < nr_cpu_ids are clear. That's the whole vibe check. πŸ’…

⭐ RETURN ⭐

It hands you back true if srcp is empty (aka has no bits set), otherwise it's false. Iconic behaviour, honestly. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

They live in the kernel file ./include/linux/cpumask.h, and the whole friend group is tagged in this post β€” every single one of them, no skipping, I don't make the rules πŸ‘‘


ngl the whole page is one boolean check and I respect the commitment πŸ’€ keep it in your back pocket, iykyk πŸ™ˆ

Okay that's the whole read, bestie β€” sourced straight out of ./include/linux, dated October 2026, and yeah, the header still calls it cpumask_empty(9) like a proper Kernel API Manual entry πŸŽ€βœ¨ Byeee πŸ’œ

πŸ“¦ where this page comes from