cmask_reframe(9)
π NAME
okay so bestie, welcome to cmask_reframe(9) β it's from the Kernel API Manual, and it's here to Reshape @m's active range without resizing storage. that's the whole vibe β¨
β¨ SYNOPSIS β¨
the signature is literally giving:
void cmask_reframe (struct scx_cmask __arena *m , u32 base , u32 nr_cids
);
π ARGUMENTS π
mβ the cmask to reframe, bestie. that's the main character πbaseβ the new active range base.nr_cidsβ the new active range length; it must fit withinm->alloc_wordsβ no sneaky overflow energy, okay? π«Ά
π¦ DESCRIPTION π¦
okay so real talk: body bits within the new range become garbage π. only the head and tail words are zeroed, and that's specifically to keep the padding invariant. no cap, that's the whole thing.
π¨ bestie, do not forget: the body bits in the new range are toast. only the head and tail words get zeroed. periodt.
π SEE ALSO π
the kernel file ./tools/sched_ext/include/scx/cid.bpf.h is right there with __cmask_init(9), cmask_init(9), cmask_next_set(9), and cmask_from_cpumask(9). go click around, iykyk π«Άβ¨
mwah π this lil page lives in ./tools/sched_ext/include/scx and is dated October 2026 β source/version and date, check, bye 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