__scx_cmask_init(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual β today we're looking at __scx_cmask_init(9), and it's literally here to initialize @m with explicit storage capacity. That's the whole assignment. π«Ά
β¨ SYNOPSIS β¨
void __scx_cmask_init (struct scx_cmask *m , u32 base , u32 nr_cids , u32 alloc_cids );
π ARGUMENTS π
mβ the cmask to initialize, 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. All of bits[] is zeroed β yes, the whole thing, no cap. β¨
π₯ SEE ALSO π₯
Peep the kernel file ./kernel/sched/ext/cid.h and these absolute icons: 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_reframe(9), scx_cmask_test(9), scx_cmask_for_each_cid(9). iykyk π
mwah π β this page comes from ./kernel/sched/ext, dated October 2026, and it's the __scx_cmask_init(9) entry in the Kernel API Manual. bye bestie, go zero some bits responsibly π
π¦ 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