scx_cmask_subset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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