cmask_next_set(9)
π¦ NAME π¦
okay so this is cmask_next_set(9), straight from the Kernel API Manual, and it's literally here to find the first set bit at or after @cid. bestie, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
u32 cmask_next_set (const struct scx_cmask __arena *m , u32 cid );
π ARGUMENTS π
mβ the cmask to search, periodt πcidβ the starting cid, and yes it gets clamped tom->baseif it's below π
π DESCRIPTION π
So it returns the smallest set cid in [cid, m->base + m->nr_cids), or m->base + m->nr_cids if there isn't one. that out-of-range sentinel matches the termination condition used by cmask_for_each, iykyk π«Ά
π SEE ALSO π
Kernel file ./tools/sched_ext/include/scx/cid.bpf.h β __cmask_init(9), cmask_init(9), cmask_reframe(9), cmask_from_cpumask(9) π
source/version: ./tools/sched_ext/include/scx Β· date: October 2026 Β· page: cmask_next_set(9) β mwah, stay iconic bestie πβ¨
π¦ 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