cpumask_parse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpumask_parse(9) β€” kernel API manual, but make it cute

okay so bestie, welcome to the cpumask_parse(9) page from the Kernel API Manual ✨ this is the one that goes "here's a string, gimme a cpumask out of it" and honestly? she serves. let's get into it 🫢


πŸŽ€ NAME πŸŽ€

cpumask_parse β€” extract a cpumask from a string. that's it, that's the whole job, and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

int cpumask_parse (const char *buf , struct cpumask *dstp );

like… look at her. two args, one int, zero drama 🌸


πŸ¦‹ ARGUMENTS πŸ¦‹

  • buf β€” the buffer you're extracting from, i.e. the string with the actual mask info in it. it's the source material, the main character, the text you're reading from πŸ“–
  • dstp β€” the cpumask you're setting. this is the destination, the glow-up target, the girl who gets the makeover πŸ’–

πŸ‘‘ RETURN πŸ‘‘

-errno, or 0 for success. so if it's 0 you're slaying, and if it's negative you got an errno and it's giving "something went wrong" 😭 no cap.


🌈 SEE ALSO 🌈

okay this section is long because the whole cpumask family is huge and they all live in the kernel file ./include/linux/cpumask.h. every single one, no skipping, no cap:

real talk: it's a whole friend group and they all ate πŸ”₯

πŸ’œ sign-off πŸ’œ

this page lives in the source ./include/linux, dated October 2026, and it's the cpumask_parse(9) entry of the Kernel API Manual. ty for reading bestie, go parse a mask, you're gonna do iconic πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from