cgroup_enable_threaded(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to cgroup_enable_threaded(9) from the Kernel API Manual β€” this is the little kernel function that makes a cgroup go threaded, and we're gonna read it together like a group chat πŸ’…βœ¨

🌸 NAME 🌸

cgroup_enable_threaded β€” make @cgrp threaded. that's the whole name, no cap.

✨ SYNOPSIS ✨

int cgroup_enable_threaded (struct cgroup *cgrp );

πŸŽ€ ARGUMENTS πŸŽ€

  • cgrp β€” the target cgroup. like, the one you're trying to make threaded, bestie 🎯

πŸ’… DESCRIPTION πŸ’…

So here's the vibe: this function is called when "threaded" is written to the cgroup.type interface file. It tries to make cgrp threaded and join the parent's resource domain. that's the mission, fr fr.

Heads up: this function is never called on the root cgroup, because cgroup.type doesn't exist on it. not even a little. no cap 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./kernel/cgroup/cgroup.c, plus this whole iconic squad:


cute sign-off: source/version ./kernel/cgroup, dated October 2026. bye bestie, go make that cgroup threaded πŸ«ΆπŸ’–

πŸ“¦ where this page comes from