scx_cmask_for_each_cid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is the scx_cmask_for_each_cid(9) page from the Kernel API Manual β€” and it's literally the β€œwalk the set cids” moment. πŸ’…βœ¨

🌸 NAME 🌸

scx_cmask_for_each_cid β€” iterate set cids in @m. That's the whole assignment, no cap. 🫢

✨ SYNOPSIS ✨

the call looks like this, copy-paste energy:

scx_cmask_for_each_cid (cid , m );

πŸŽ€ ARGUMENTS πŸŽ€

  • cid β€” a s32 loop var that receives each set cid in turn. It's the lil main character that changes every round. 🌟
  • m β€” the cmask to iterate. This is the vibe check source. πŸ¦‹

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so what it does: it visits the set bits inside m's active range, and it does that in ascending order. No chaos, no random order β€” ascending, periodt. πŸ”₯

It scans only the words that the active range spans. Head and tail padding is kept zero, so no per-cid range check is needed. That's the flex: the padding does the bouncer duty for you. πŸ’…

πŸ’– SEE ALSO πŸ’–

Kernel file: ./kernel/sched/ext/cid.h β€” yep, that's the spot. The whole squad:


mwah πŸ’‹ this page is brought to you by the source/version path ./kernel/sched/ext, dated October 2026 β€” iconic, frozen-in-time kernel manual energy. πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from