misc_cg_alloc(9)
πΈ NAME πΈ
okay so bestie, this is misc_cg_alloc(9) from the Kernel API Manual, and it does exactly one iconic thing: misc_cg_alloc β Allocate misc cgroup. that's the main character move. π
β¨
β¨ SYNOPSIS β¨
struct cgroup_subsys_state * misc_cg_alloc (struct cgroup_subsys_state *parent_css );
π ARGUMENTS π
parent_cssβ the parent cgroup. yep, that's the one it's attached to. π«Ά
π«Ά CONTEXT π«Ά
Process context. that's the whole vibe check here. π
π RETURN π
struct cgroup_subsys_state*β css of the allocated cgroup. slay, you got your css. πERR_PTR(-ENOMEM)β No memory available to allocate. π no memory, no cgroup, that's the rule.
π¦ SEE ALSO π¦
Kernel file ./kernel/cgroup/misc.c β and the whole friend group:
parent_misc(9)valid_type(9)misc_cg_set_capacity(9)misc_cg_cancel_charge(9)misc_cg_try_charge(9)misc_cg_uncharge(9)misc_cg_max_show(9)misc_cg_max_write(9)misc_cg_current_show(9)misc_cg_peak_show(9)misc_cg_capacity_show(9)misc_cg_free(9)
and that's the page, bestie π source/version is ./kernel/cgroup, date is October 2026, and this little misc_cg_alloc(9) icon is officially signing off. periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms