for_each_subsys(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, you're reading for_each_subsys(9) from the Kernel API Manual, and it's giving kernel-internals realness πŸ’…βœ¨

πŸ’– NAME πŸ’–

for_each_subsys β€” iterate all enabled cgroup subsystems. That's the whole assignment, and it ate. 🫢

✨ SYNOPSIS ✨

for_each_subsys (ss , ssid );

πŸŽ€ ARGUMENTS πŸŽ€

  • ss β€” the iteration cursor. It's literally the thing you're moving through the loop, bestie. πŸŒ€
  • ssid β€” the index of ss; it's CGROUP_SUBSYS_COUNT after reaching the end. That's the finish-line vibe check, no cap. 🏁

🌸 SEE ALSO 🌸

  • Kernel file ./kernel/cgroup/cgroup-internal.h β€” go look here for the source-y context, iykyk. πŸ“‚πŸ‘€

Signed off from ./kernel/cgroup β€” October 2026 β€” for_each_subsys(9) πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from