scx_bpf_cid_curr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

scx_bpf_cid_curr β€” return the curr task on the CPU at @cid ✨

okay bestie, welcome to the Kernel API Manual page for scx_bpf_cid_curr(9) β€” yes, the title and the function name are the same, we love a consistent icon. πŸ’…


✨ SYNOPSIS ✨

the whole signature, copied with love and zero edits:

       __bpf_kfunc struct task_struct * scx_bpf_cid_curr (s32 cid , const
       struct bpf_prog_aux *aux );

πŸŽ€ ARGUMENTS πŸŽ€

  • cid β€” cid of interest. literally the cid you're curious about πŸ’…
  • aux β€” implicit BPF argument to access bpf_prog_aux hidden from BPF progs. it's giving "backstage pass that BPF progs don't get to see" 🎟️

πŸ’… DESCRIPTION πŸ’…

so this is the cid-addressed equivalent of scx_bpf_cpu_curr. that's the vibe. πŸ¦‹

⚠️ bestie, this is not a drill: callers must hold the RCU read lock (KF_RCU). like, actually. no cap. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file: ./kernel/sched/ext/ext.c β€” and here's the whole squad, no cap:


mwah πŸ’‹ β€” source/version: ./kernel/sched/ext; date: October 2026. that's the whole page, bestie. slay. βœ¨πŸ‘‘

πŸ“¦ where this page comes from