scx_has_subs(9)
π 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 π―ββοΈ:
scx_add_event(9)__scx_add_event(9)struct scx_enable_args(9)struct sched_ext_ops(9)struct sched_ext_ops_cid(9)scx_arena_to_kaddr(9)scx_kaddr_to_arena(9)DEFINE_SCX_COMPAT_MARKER(9)scx_root_protected_live(9)scx_root_protected(9)scx_bypass_dsp_enabled(9)scx_ops_sanitize_err(9)scx_task_sched(9)scx_task_sched_rcu(9)scx_task_on_sched(9)scx_prog_sched(9)scx_parent(9)
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
- 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