join_parent_cgroup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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