cpuset_css_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cpuset_css_alloc(9) β€” like, the Kernel API Manual one πŸŽ€

okay so bestie, welcome to the cpuset css allocation party ✨ this is a Kernel API Manual page, so buckle up, we're in kernel-land now πŸ¦‹


✨ NAME ✨

cpuset_css_alloc β€” allocate a cpuset css 🫢 (yes that's the whole name, she's lowkey self-explanatory and we love that for her)


🌸 SYNOPSIS 🌸

struct cgroup_subsys_state * cpuset_css_alloc (struct
cgroup_subsys_state *parent_css );

like, she takes one thing and hands you a struct cgroup_subsys_state * back, no cap πŸ’«


πŸŽ€ ARGUMENTS πŸŽ€

  • parent_css β€” the parent css of the control group that the new cpuset is gonna be part of 🧚 so like, your new cpuset is joining that family, iykyk

πŸ‘‘ RETURN πŸ‘‘

  • the cpuset css on success πŸŽ‰ slay
  • -ENOMEM on failure 😭 (out of memory, tragic, we've all been there)

πŸ”₯ DESCRIPTION πŸ”₯

so what she does is allocate and initialize a brand new cpuset css πŸ’… and here's the tea: for a non-NULL parent_css, you get that freshly allocated cpuset css. but if parent_css is NULL, she returns the top cpuset css instead πŸ‘€ main character energy fr fr.


🌈 SEE ALSO 🌈

the whole friend group 🫢, all hanging out in the kernel file ./kernel/cgroup/cpuset.c:


and that's the whole page, bestie πŸ’œ go forth and allocate responsibly. this one came from ./kernel/cgroup, dated October 2026 β€” mwah, see u in the next manpage πŸ“πŸ’‹

πŸ“¦ where this page comes from