enable_controllers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 in cgroup.controllers format. 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:


πŸ“ 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