scx_cmask_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the cid to test, bestie. That’s the one we’re checking on.
  • m β€” the cmask to 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:


xoxo, signing off from ./kernel/sched/ext β€” October 2026 β€” scx_cmask_test(9) πŸ’–βœ¨

πŸ“¦ where this page comes from