scx_task_sched_rcu(9)
π« scx_task_sched_rcu(9) β the Kernel API Manual, bestie edition π«
Okay so picture this: you're deep in the kernel API manual, section 9, and you just need to know which scheduler is running a task. That's it. That's the whole vibe. Welcome to scx_task_sched_rcu, baby π
πΈ NAME πΈ
scx_task_sched_rcu β find the scx_sched that's scheduling a task, no cap π
β¨ SYNOPSIS β¨
struct scx_sched * scx_task_sched_rcu (const struct task_struct *p );
Like, one function, one job. She's focused. She's iconic. π
π¦ ARGUMENTS π¦
pβ the task of interest π«Ά like yes, this task right here, this is the one we care about
π DESCRIPTION π
Returns p's scheduler instance. Simple as that, fr fr.
The returned scx_sched is RCU protected β‘ β soooo don't go freeing it or being weird with it outside an RCU read-side critical section, okay? Respect the protection. It's giving "handle with care" energy π
π§ SEE ALSO π§
Kernel file ./kernel/sched/ext/internal.h β and honestly the whole friend group, they all show up together:
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_has_subs(9)scx_task_sched(9)scx_task_on_sched(9)scx_prog_sched(9)scx_parent(9)
π«Ά that's the whole page, bestie β go forth and schedule responsibly β¨
And that's a wrap, cuties π this one lives in ./kernel/sched/ext, dated October 2026, and the manual name on the tin is scx_task_sched_rcu(9). slay, bye ππβ
π¦ 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