__cmask_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 least nr_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 🌸


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