scx_has_subs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scx_has_subs(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual page for scx_has_subs(9) β€” yes, manual name folded in near the top, periodt πŸ’–

🌸 NAME 🌸

scx_has_subs β€” Whether any sub-scheduler exists πŸ‘‘

✨ SYNOPSIS ✨

bool scx_has_subs (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments. Like, literally none. Not a single one, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function gates the sub-sched portions of hot paths so that a root-only system doesn't pay for them πŸ”₯. It’s giving responsible gatekeeper energy, honestly πŸ’….

And if you wanna peek at the related code, the page points you to scx_sub_enable_workfn and scx_sched_free_rcu_work πŸ‘€ β€” exact names, no cap.

🌈 SEE ALSO 🌈

The kernel file to check is ./kernel/sched/ext/internal.h, and here’s the whole friend group πŸ‘―β€β™€οΈ:


okay that’s the whole page, bestie β€” sourced from ./kernel/sched/ext, dated October 2026 πŸŽ€βœ¨. Go forth and gate those hot paths, iykyk πŸ’–

πŸ“¦ where this page comes from