css_create(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… css_create(9) β€” Kernel API Manual ✨

okay bestie, you already know the manual page name is css_create(9) β€” the header of this whole thing β€” and it lives in the Kernel API Manual. let's get into it, no cap 🫢


✨ NAME ✨

css_create β€” create a cgroup_subsys_state πŸŽ€


🌸 SYNOPSIS 🌸

struct cgroup_subsys_state * css_create (struct cgroup *cgrp , struct
cgroup_subsys *ss );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cgrp β€” the cgroup that the new css is gonna be associated with, like literally its new home πŸ’–
  • ss β€” the subsys of the new css ✨

πŸ’œ DESCRIPTION πŸ’œ

okay so the whole vibe here: css_create creates a brand-new css that's associated with the cgrp - ss pair. iconic pairing, honestly πŸ‘‘

on success, the new css is online and installed in cgrp β€” like it's moved in and unpacked its boxes already 🧳✨

heads up though bestie: this function doesn't create the interface files. that's somebody else's job, not ours, periodt πŸ’…

it returns 0 on success, and -errno on failure 😭 so yeah, check your return values, iykyk.


🌈 SEE ALSO 🌈

kernel file ./kernel/cgroup/cgroup.c β€” plus the whole friend group, and yes i'm listing every single one because we don't do half measures here πŸ’€


and that's the whole page, bestie 🫢✨ this cutie pie of a manpage ships from ./kernel/cgroup πŸ“, dated October 2026 πŸ—“οΈ, and it's filed under css_create(9) β€” slay, go forth and create your cgroup_subsys_states responsibly πŸ’…πŸ’–πŸŒΈ

πŸ“¦ where this page comes from