scx_prog_sched(9)
okay bestie, welcome to scx_prog_sched(9) from the Kernel API Manual β section 9, no cap. itβs giving kernel-internals realness, and weβre gonna get you comfy with it. π
β¨
πΈ NAME πΈ
scx_prog_sched β find the scx_sched associated with a BPF prog. periodt. π
β¨ SYNOPSIS β¨
hereβs the vibe in C, exactly as it is:
struct scx_sched * scx_prog_sched (const struct bpf_prog_aux *aux );
π«Ά ARGUMENTS π«Ά
auxβ theauxpassed in from BPF to a kfunc. yes bestie, thatβs the whole argument. iconic minimalism. π
π DESCRIPTION π
okay so this one is to be called from kfuncs. it returns the scheduler instance associated with the BPF program, given the implicit kfunc argument aux. the returned scx_sched is RCU protected β noted, bestie, donβt forget that part. π₯
π¦ SEE ALSO π¦
also peep these, iykyk:
- Kernel file
./kernel/sched/ext/internal.h 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_sched_rcu(9)scx_task_on_sched(9)scx_parent(9)
mwah π thatβs the whole page, bestie. it comes from ./kernel/sched/ext, its footer says scx_prog_sched(9), and itβs dated October 2026 β go be iconic with your kfuncs! ππ
π¦ 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