cgroup_restore_control(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cgroup_restore_control β€” the Kernel API Manual girlie says hi

okay so bestie, welcome to the Kernel API Manual ✨ this one's a tiny little function but she's IMPORTANT, so let's get into it 🫢


🌸 NAME 🌸

cgroup_restore_control β€” the function that restores the control masks and the dom_cgrp of a whole subtree πŸŽ€


✨ SYNOPSIS ✨

void cgroup_restore_control (struct cgroup *cgrp );

that's it. that's the whole signature. no cap πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cgrp β€” the root of the target subtree 🌈 like, the top of the little family tree she's about to restore.

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: cgroup_restore_control() restores ->subtree_control, ->subtree_ss_mask and ->dom_cgrp β€” all three, together, no crumbs left behind πŸ‘‘

and where does she get those values from? from the respective old_ prefixed fields πŸŽ€ iykyk, the old_ fields are the save file, this function is the load button.

scope check: she does this for cgrp's subtree, including cgrp itself β€” so the root is not exempt, she's restoring the whole family, main character included πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

so like, here's the entire friend group β€” every single one of them, fr fr, and they all live in ./kernel/cgroup/cgroup.c πŸ“

like, that's the whole group chat and every single one of them ate πŸ”₯ no skips, no "read more", all of them πŸ’€


aaaand that's the page bestie!! 🧚 this little icon comes to you from ./kernel/cgroup (the source, she lives there 🏠) and it's dated October 2026 ⭐ mwah, go restore some subtrees, you're gonna slay πŸ’…πŸ’–πŸ“

πŸ“¦ where this page comes from