join_root_cgroup(9)
π join_root_cgroup(9) β Kernel API Manual
okay so bestie, welcome to the join_root_cgroup manpage, section 9, straight out of the Kernel API Manual β¨ this one's short and sweet, so let's go π«Ά
πΈ NAME πΈ
join_root_cgroup β literally just, join the root cgroup. that's the whole vibe π
π SYNOPSIS π
int join_root_cgroup (void );
like, yes, that's the entire signature. she's minimal. she's iconic. π
π¦ ARGUMENTS π¦
voidβ no arguments, bestie. zero. none. she takes nothing and she needs nothing π
β DESCRIPTION β
So here's the tea: this function joins the root cgroup. that's it, that's the function π no cap, that's the entire description.
On success, it returns 0, otherwise on failure it returns 1. so like, 0 = slay, 1 = not slay π keep that in mind for your error checking, okay? π
π₯ SEE ALSO π₯
Kernel file ./tools/testing/selftests/bpf/cgroup_helpers.c β that's where she lives, go read the source if you're nosy (respectfully) π
and then the whole friend group, fr fr:
enable_controllers(9)write_cgroup_file(9)write_cgroup_file_parent(9)setup_cgroup_environment(9)join_cgroup(9)join_parent_cgroup(9)set_cgroup_xattr(9)__cleanup_cgroup_environment(9)cleanup_cgroup_environment(9)get_root_cgroup(9)create_and_get_cgroup(9)get_cgroup_id_from_path(9)setup_classid_environment(9)set_classid(9)join_classid(9)cleanup_classid_environment(9)get_classid_cgroup_id(9)get_cgroup1_hierarchy_id(9)open_classid(9)
bestie reminder: this page is filed under ./tools/testing/selftests/bpf and it's dated October 2026 β so like, mark your calendar or whatever π
β¨
that's the whole page, you ate it up, go join that root cgroup π ππ
π¦ 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