setup_cgroup_environment(9)
πΈ NAME πΈ
setup_cgroup_environment β setting up the cgroup environment, bestie π
β¨ SYNOPSIS β¨
int setup_cgroup_environment (void );
π ARGUMENTS π
voidβ no arguments, like, literally none π«Ά
π¦ DESCRIPTION π¦
Okay so after you call this function, you gotta call cleanup_cgroup_environment once testing is complete β that's the vibe, don't skip it π
This function will print an error to stderr and return 1 if it is unable to setup the cgroup environment. If setup is successful, 0 is returned. Periodt β¨
π SEE ALSO π
Kernel file ./tools/testing/selftests/bpf/cgroup_helpers.c π
enable_controllers(9)write_cgroup_file(9)write_cgroup_file_parent(9)join_cgroup(9)join_root_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)
mwah π this lil page lives in ./tools/testing/selftests/bpf, dated October 2026, and it's called setup_cgroup_environment(9) β slay, bye bestie π«Άπ·
π¦ 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