join_parent_cgroup(9)
π NAME π
This is join_parent_cgroup(9) from the Kernel API Manual, and it's giving tiny-but-mighty helper energy: join a cgroup in the parent process workdir. That's the whole assignment, bestie. π
β¨
β¨ SYNOPSIS β¨
int join_parent_cgroup (const char *relative_path );
π ARGUMENTS π
relative_pathβ the cgroup path, relative to the parent process workdir, to join. That's it: you're handing it the path from the parent process workdir, and it knows what to do. π«Ά
π¦ DESCRIPTION π¦
Okay so the lore is short and sweet: See join_cgroup. That's the cross-reference, bestie β this page is lowkey delegating the full story. π
On success, it returns 0; otherwise on failure it returns 1. No cap, those are the numbers. π
π SEE ALSO π
Kernel file: ./tools/testing/selftests/bpf/cgroup_helpers.c β noted, bestie. π
Go give these friends a read, iykyk:
enable_controllers(9)write_cgroup_file(9)write_cgroup_file_parent(9)setup_cgroup_environment(9)join_cgroup(9)join_root_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)
Catch you from the ./tools/testing/selftests/bpf source corner, dated October 2026, with join_parent_cgroup(9) energy forever. πβ¨
π¦ 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