join_root_cgroup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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