scx_cmask_for_each_cid(9)
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β as32loop 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:
cid_valid(9)__scx_cid_to_cpu(9)__scx_cpu_to_cid(9)scx_cid_to_cpu(9)scx_cpu_to_cid(9)scx_is_cid_type(9)__scx_cmask_init(9)scx_cmask_init(9)scx_cmask_reframe(9)scx_cmask_test(9)
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
- 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