cpumask_xor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpumask_xor β€” the kernel's exclusive-or moment

okay so bestie, you found cpumask_xor in the Kernel API Manual (section 9, the kernel-internals one, iykyk) and tbh it's a whole vibe once you get it. Let's go ✨


✨ NAME ✨

cpumask_xor β€” literally this: *dstp = *src1p ^ *src2p πŸŽ€

no cap, that's the entire personality. it's bitwise XOR but for cpu masks, and it eats.


🌸 SYNOPSIS 🌸

void cpumask_xor (struct cpumask *dstp , const struct cpumask *src1p ,
const struct cpumask *src2p );

she's void, she returns nothing, she just does the thing and dips πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • dstp β€” the cpumask result 🫢 this is where the answer lands. it's giving main character energy because everything gets written here.
  • src1p β€” the first input πŸ’œ your left-hand side, the first bestie in the equation.
  • src2p β€” the second input πŸ’… your right-hand side, the other half of the XOR moment.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group lives in the kernel file ./include/linux/cpumask.h and honestly? iconic lineup. go say hi to:

like, that's the group chat. read the whole thread. πŸ’€πŸ”₯


and that's the page babes 🧚 source lives in ./include/linux and the date on this one is October 2026 β€” so yes, she's from the future and still slaying. see u in the next manpage, mwah πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from