alloc_tmpmasks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… alloc_tmpmasks β€” kernel API manual, bestie edition

okay so this is the alloc_tmpmasks(9) page, it lives in the kernel API manual, and it is genuinely such a small slay little function. πŸŽ€


✨ NAME ✨

alloc_tmpmasks β€” bestie, it literally just allocates temporary cpumasks for cpuset operations. that's the whole vibe. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int alloc_tmpmasks (struct tmpmasks *tmp );

yes that's it. one argument. one int coming back at you. iconic. 🌸


πŸ’– ARGUMENTS πŸ’–

  • tmp β€” a pointer to the tmpmasks structure you want populated. like, hand it over and it gets filled in. 🫢

🌈 RETURN 🌈

  • 0 β€” success, we ate, everything is fine. ✨
  • -ENOMEM β€” allocation failure 😭 the memory said no.

πŸ‘‘ SEE ALSO πŸ‘‘

so uh. the kernel file is ./kernel/cgroup/cpuset.c, and honestly the whole cpuset friend group shows up here. no cap, this is a long list, but every single one of them is invited to the party:


fr fr that's the entire page. it's short, it's sweet, it allocates some temporary cpumasks, and it leaves. main character energy honestly. πŸ’€

okay bye bestie, this one came from ./kernel/cgroup and it's dated October 2026 β€” go forth and allocate responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from