__scx_cmask_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 least nr_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