SCX_CMASK_DEFINE_SHARD(9)
Okay bestie, welcome to the Kernel API Manual page for SCX_CMASK_DEFINE_SHARD(9) πβ¨ This one is all about defining an on-stack cmask sized to one shard, and the vibe check is: keep your ranges in order or things get spicy in the bad way. π«Ά
πΈ NAME πΈ
SCX_CMASK_DEFINE_SHARD β define an on-stack cmask sized to one shard</p> π
β¨ SYNOPSIS β¨
SCX_CMASK_DEFINE_SHARD (NAME , BASE , NR_CIDS );
Thatβs the whole call shape, bestie β no cap. π
π§ ARGUMENTS π§
NAMEβ the variable name youβre defining. Name it cute, name it clear, just name it. πBASEβ the first cid of the active range. Thatβs where the range starts, periodt.NR_CIDSβ the active range length. It must be <=SCX_CID_SHARD_MAX_CPUS, okay? This is not a drill. π
π DESCRIPTION π
Storage is fixed at SCX_CID_SHARD_MAX_CPUS, and the active range is framed by (BASE, NR_CIDS). Think of it like the vibes are set, the storage is set, and the range has to fit inside that whole situation. β¨
π¨ Warning, bestie: passing NR_CIDS > SCX_CID_SHARD_MAX_CPUS leaves the cmask claiming more bits than the storage actually holds. And then subsequent cmask operations will overrun. That is not slay. That is a bug. π
π¦ SEE ALSO π¦
Peep the kernel file ./kernel/sched/ext/types.h, plus __SCX_CMASK_DEFINE(9) and SCX_CMASK_DEFINE(9) β iykyk. π
Signed off with love from the source/version ./kernel/sched/ext, dated October 2026 ππ Mwah!
π¦ 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