scx_prog_sched(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the aux passed 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:


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