scx_cmask_subset(9)
π scx_cmask_subset β Kernel API Manual, section 9 π
okay bestie, settle in, because this one is from the Kernel API Manual and it's lowkey the sweetest little boolean check you'll ever meet β¨
πΈ NAME πΈ
scx_cmask_subset β bestie, all this does is test whether @sub is a subset of @super. that's it. that's the whole vibe check π¦
β¨ SYNOPSIS β¨
bool scx_cmask_subset (const struct scx_cmask *sub , const struct scx_cmask *super );
like, it literally takes two cmask pointers and hands you back a bool. no cap. π
π ARGUMENTS π
subβ the cmask you're testing. the one being checked. the main character of the question πsuperβ the cmask you're testing against. the big reference energy. the one doing the containing π«Ά
π§ DESCRIPTION π§
so here's the whole thing: it returns true iff every single set bit of sub is also set in super. every one. no stragglers. no "close enough". if even one bit of sub is out there living its truth in super's unset territory, the answer is false, periodt π
that's it, that's the function. she's small, she's focused, she ate and left no crumbs π₯
π¦ SEE ALSO π¦
this is the group chat, and everyone's invited π. all of these live in the kernel file ./kernel/sched/ext/cid.c:
scx_cid_publish_tables(9)scx_cid_retire_tables(9)scx_cid_init(9)scx_cmask_clear(9)scx_cmask_fill(9)scx_bpf_cid_override(9)scx_bpf_cid_to_cpu(9)scx_bpf_cpu_to_cid(9)scx_cmask_empty(9)scx_bpf_cid_topo(9)scx_cmask_ref_init(9)scx_cmask_ref_init_kern(9)scx_cmask_ref_shard(9)scx_cmask_ref_or(9)scx_cmask_ref_copy(9)scx_cmask_ref_from_cpumask(9)
ngl bestie, if you're reading this page you probably also need scx_cmask_empty(9) β they're literally sisters π
mwah, that's a wrap π this page came straight out of ./kernel/sched/ext and it's dated October 2026, so likeβ¦ future icon behaviour honestly π stay hydrated, go read your cpumasks, and remember: subset checks are free but friendship is priceless π§β¨
π¦ 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