cpumask_clear_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ cpumask_clear_cpu(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… β€” yes that's the manual name, and yes it's giving Very Official, but honestly this one page is a lil' cutie and it's literally one job: un-set a single CPU bit. That's it. That's the whole vibe. πŸŽ€


🌸 NAME 🌸

cpumask_clear_cpu β€” clear a cpu in a cpumask

like, you point at a cpumask, you point at a cpu number, and boom πŸ’₯ that bit is gone. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

void cpumask_clear_cpu (int cpu , struct cpumask *dstp );

that's the whole signature, character for character, don't @ me πŸ™ˆ


⭐ ARGUMENTS ⭐

  • cpu β€” the cpu number you wanna yeet out of the mask. must be < nr_cpu_ids πŸ’€ (that < nr_cpu_ids is not a suggestion, bestie, it's the rule)
  • dstp β€” the cpumask pointer. the actual mask getting its glow-down ✨
fr fr, cpu has to be under nr_cpu_ids. keep that check in your head, iykyk 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

so the kernel file for all this is ./include/linux/cpumask.h β€” the mothership 🧚 and here is every single friend in the cpumask cinematic universe, in order, no skips, no cuts 🌈:

that's sixty-three icons and they're all valid, we don't gatekeep here πŸ’œ


kay that's the whole page, mwah πŸ˜šπŸ’– this came from the kernel file ./include/linux, fresh off the press in October 2026 β€” cpumask_clear_cpu(9), signing off, slay 🫢✨

πŸ“¦ where this page comes from