scx_root_protected(9)
π scx_root_protected π
okay so bestie, welcome to the scx_root_protected(9) page from the Kernel API Manual β itβs short, itβs iconic, and itβs giving βtiny function, very specific jobβ energy β¨ grab a lil snack π and letβs get into it.
π NAME π
scx_root_protected β root sched for contexts that exclude its updates. periodt π
β SYNOPSIS β
struct scx_sched * scx_root_protected (void );
πΈ ARGUMENTS πΈ
voidβ no arguments, bestie. literally nothing to pass in. zero. nada. the void is the vibe π«Ά
π¦ DESCRIPTION π¦
okay so hereβs the tea: both scx_root updates run under the locks checked below, so holding one excludes them. no cap.
scx_root_protected returns the root sched with a plain load. if no scheduler is loaded, it returns NULL. thatβs it. thatβs the whole function. iconic behavior honestly π₯
π SEE ALSO π
the kernel file is literally ./kernel/sched/ext/internal.h β go peek if youβre nosy π
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_bypass_dsp_enabled(9)scx_ops_sanitize_err(9)scx_has_subs(9)scx_task_sched(9)scx_task_sched_rcu(9)scx_task_on_sched(9)scx_prog_sched(9)scx_parent(9)
π· okay bye bestie β this page came from ./kernel/sched/ext, dated October 2026, and itβs literally scx_root_protected(9). mwah π
π¦ 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