scx_cmask_test(9)
π
scx_cmask_test(9) β Kernel API Manual, bestie edition
okay so weβre looking at scx_cmask_test(9), and honestly? Itβs giving βtiny function, very important vibe check.β Letβs get into it π«Ά
β¨ NAME β¨
scx_cmask_test β test whether @cid is set in @m
π¦ SYNOPSIS π¦
bool scx_cmask_test (u32 cid , const struct scx_cmask *m );
π ARGUMENTS π
cidβ thecidto test, bestie. Thatβs the one weβre checking on.mβ thecmaskto test. This is the mask getting inspected.
π₯ DESCRIPTION π₯
So hereβs the tea: if cid is outside mβs active range, this returns false. Periodt.
Otherwise, it returns the bitβs value. Yep, thatβs the whole main character moment.
And important detail, no cap: the read happens via READ_ONCE, so callers can race set/clear writers. Read that again if you need to β itβs literally right there in the functionβs whole deal π
π SEE ALSO π
Kernel file ./kernel/sched/ext/cid.h β and the whole lil friend group:
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_init(9)scx_cmask_reframe(9)scx_cmask_for_each_cid(9)
xoxo, signing off from ./kernel/sched/ext β October 2026 β scx_cmask_test(9) πβ¨
π¦ 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