__cmask_init(9)
okay bestie, welcome to the Kernel API Manual π this is the page for __cmask_init(9), and she is literally here to initialize your cmask with explicit storage capacity. no cap, she's iconic for exactly that.
β¨ NAME β¨
__cmask_init β initialize @m with explicit storage capacity
π SYNOPSIS π
void __cmask_init (struct scx_cmask __arena *m , u32 base , u32 nr_cids
, u32 alloc_cids );
π ARGUMENTS π
mβ the cmask you're initializing, bestie.baseβ first cid of the active range.nr_cidsβ number of cids in the active range.alloc_cidsβ storage capacity in cids, and it has to be at leastnr_cids.
π¦ DESCRIPTION π¦
use this when your storage is sized larger than the initial active range. also, heads up: all of bits[] is zeroed. periodt.
πΈ SEE ALSO πΈ
- Kernel file
./tools/sched_ext/include/scx/cid.bpf.h cmask_init(9),cmask_reframe(9),cmask_next_set(9),cmask_from_cpumask(9)
mwah π source/version: ./tools/sched_ext/include/scx; date: October 2026; page: __cmask_init(9). that's the whole footer, bestie, no cap π«Ά
π¦ 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