do_each_subsys_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is do_each_subsys_mask(9) from the Kernel API Manual πŸ’– β€” it’s the filter for for_each_subsys with a bitmask, and it’s lowkey iconic.

πŸŽ€ SYNOPSIS πŸŽ€

do_each_subsys_mask (ss , ssid , ss_mask );

🌸 ARGUMENTS 🌸

  • ss β€” the iteration cursor. It’s the main character moving through the loop ✨
  • ssid β€” the index of ss, and it’s CGROUP_SUBSYS_COUNT after reaching the end. Track it, periodt.
  • ss_mask β€” the bitmask. No notes πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea: the block will only run for cases where the ssid-th bit β€” that’s (1 << ssid) β€” of ss_mask is set. That’s the whole filter vibe, fr fr 🌈

πŸ’… SEE ALSO πŸ’…

Kernel file ./kernel/cgroup/cgroup.c is part of the squad, and here’s the full SEE ALSO crew in order, bestie:


xoxo, ./kernel/cgroup β€” October 2026 β€” do_each_subsys_mask(9) πŸ«ΆπŸ’…

πŸ“¦ where this page comes from