cpumask_clear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

cpumask_clear β€” okay so this is the girl that clears, like, every cpu in a cpumask, meaning all the cpus (< nr_cpu_ids). Yes bestie, the whole thing. Wiped. Iconic behavior tbh.

This page lives in the Kernel API Manual, which is giving "the docs your kernel-dev bestie actually reads at 2am." 🫢


🌸 SYNOPSIS 🌸

void cpumask_clear (struct cpumask *dstp );

That's it. That's the whole signature. No return value, no drama, she just does the thing and leaves. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • dstp β€” the cpumask pointer πŸ’–. This is the mask you're handing over so she can clear it. That's the whole ask. Point at your struct cpumask and she takes it from there.

πŸ¦‹ SEE ALSO πŸ¦‹

Okay so there are so many siblings, and honestly the family is huge, so buckle up. The kernel file where all this lives is ./include/linux/cpumask.h β€” that's the whole crew's address 🏠:

Like I said. Huge family. All of them ate, no cap. πŸ”₯


Real talk though: this page is short on purpose. There are no extra flags, no hidden defaults, no environment variables, no exit statuses β€” nothing hiding in the fine print. cpumask_clear takes one pointer and clears all cpus (< nr_cpu_ids) in that mask. That's the entire vibe check. πŸ™ˆ

Okay that's the page!! πŸŽ€ This one came out of ./include/linux and it's dated October 2026 β€” so mark your calendar bestie, and go clear those masks. Mwah πŸ’–βœ¨πŸ§š

πŸ“¦ where this page comes from