enable_controllers(9)
π enable_controllers β the kernel API manual, bestie edition
okay so real talk, this page is from the Kernel API Manual, and it's about enable_controllers(9) β yes that's the whole title, she's a section 9 girlie, deal with it π
β¨ NAME β¨
enable_controllers β literally just turns on cgroup v2 controllers. that's the whole personality. no cap π
πΈ SYNOPSIS πΈ
int enable_controllers (const char *relative_path , const char *controllers );
like, two strings in, one int out. we love a simple signature π¦
π«Ά ARGUMENTS π«Ά
relative_pathβ the cgroup path, but make it relative to the workdir, bestie. don't come at her with absolute paths, she's not that kind of function πcontrollersβ the list of controllers you wanna enable, and it's got to be incgroup.controllersformat. format matters, iykyk β¨
π DESCRIPTION π
so what she does is: she enables the cgroup v2 controllers you asked for. the vibe check here is that if controllers is NULL, she doesn't pick and choose β she enables all the available controllers. main character energy, honestly. π
and if it works out? if the slay is successful? she returns 0. that's it. that's the whole return. a clean little 0. periodt π
π SEE ALSO π
the whole friend group, fr fr β go read these too:
Kernel file ./tools/testing/selftests/bpf/cgroup_helpers.cβ the source file herself, iconicwrite_cgroup_file(9)write_cgroup_file_parent(9)setup_cgroup_environment(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)
π reminder bestie: this is enable_controllers in section 9, so it's kernel API territory β not your normal userland command. know the difference, it's giving competence π
okay that's the page!! sourced straight from ./tools/testing/selftests/bpf, dated October 2026, and logged under enable_controllers(9) forever and always. love that for us π§ββοΈβ¨πΈ
π¦ 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