cpumask_parse_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpumask_parse_user(9) β€” Kernel API Manual πŸŽ€

okay so bestie, welcome to cpumask_parse_user(9) from the Kernel API Manual β€” yes that's the manual name, it's giving "official business" and honestly? iconic. this page is short but she ATE. let's go ✨


🌸 NAME 🌸

cpumask_parse_user β€” extract a cpumask from a user string πŸ’–

like, the whole personality of this function is: user hands you a string, you hand back a cpumask. that's it. that's the vibe check. no cap.


⭐ SYNOPSIS ⭐

int cpumask_parse_user (const char __user *buf , int len , struct
cpumask *dstp );

copy it exactly, don't be weird about it πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • buf β€” the buffer to extract from. this is the string bestie, the raw material, the moment. πŸ‘‘
  • len β€” the length of the buffer. yes you actually have to tell it how long, it is NOT psychic 😭
  • dstp β€” the cpumask to set. that's the destination, the glow-up target, the place where the answer lands πŸŽ€

🌈 RETURN 🌈

-errno, or 0 for success. πŸ’€

so: 0 = we slayed, anything negative-errno = the string did NOT serve and you should check your input, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/cpumask.h β€” plus a genuinely unhinged number of friends, all of whom you should also meet 🫢

lowkey that see-also list is a whole friend group chat and you're invited 🧚 no pressure tho

and that's the page!! this little love letter lives in ./include/linux, dated October 2026, and it's filed under cpumask_parse_user(9) β€” go forth and parse responsibly πŸ’œβœ¨πŸ“

πŸ“¦ where this page comes from