cgroup_apply...trol_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ cgroup_apply_control_disable β€” the Kernel API Manual, bestie edition πŸ’…

okay so you're reading a Kernel API Manual page, and the page you want is literally called cgroup_apply...trol_disable(9) (yes the title is truncated, no that's not a typo, that's just how they abbreviate things around here πŸ’€). Buckle up, we're going into the cgroup guts 🫢


🌸 NAME 🌸

cgroup_apply_control_disable β€” kill or hide csses according to control ✨


πŸŽ€ SYNOPSIS πŸŽ€

void cgroup_apply_control_disable (struct cgroup *cgrp );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cgrp β€” the root of the target subtree. That's your starting point, the main character of this whole operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So the vibe here is: we walk cgrp's subtree, and along the way we kill and hide csses so that they match cgroup_ss_mask and cgroup_visible_mask. That's the whole assignment fr fr 🌈

Now, when is a css hidden? When userland asks for it to be disabled but other subsystems are still depending on it 😭 like, it can't just be yeeted out of existence, other stuff needs it. So instead it gets hidden. Sneaky but iconic.

And the rule that comes with the hiding: the css must not actively control resources, and it has to be in the vanilla state if it's ever made visible again later. No cap, that's required β€” otherwise you'd un-hide a css that's out here still pulling levers 😳

Which means: controllers that may be depended upon should provide ->css_reset for exactly this purpose. That's their little reset button so the vanilla state is guaranteed 🧚

ngl this one's a "read the masks, respect the masks" situation β€” hide β‰  delete, and the css has to be pristine for its comeback arc ⭐

🌈 SEE ALSO 🌈

Sis, this list is long and honestly? goals. Every single one of these:

and obvs the kernel file it all lives in: ./kernel/cgroup/cgroup.c πŸ“ iykyk


that's the whole page bestie, you ate that πŸ’… the source is ./kernel/cgroup and it's dated October 2026 β€” so when you're out here hiding csses, know that this lil doc was stamped October 2026 and the version tag on it is still cgroup_apply...trol_disable(9), periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from