scx_bpf_cidperf_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is scx_bpf_cidperf_set(9) from the Kernel API Manual, and it is literally here to β€œSet the performance target of the CPU at @cid” ✨

πŸ’… SYNOPSIS πŸ’…

__bpf_kfunc s32 scx_bpf_cidperf_set (s32 cid , u32 perf , const struct bpf_prog_aux *aux );

πŸŽ€ ARGUMENTS πŸŽ€

  • cid β€” cid of the CPU to target πŸ‘€
  • perf β€” target performance level [0, SCX_CPUPERF_ONE] ⚑
  • aux β€” implicit BPF argument to access bpf_prog_aux, hidden from BPF progs 🫣

πŸ¦‹ DESCRIPTION πŸ¦‹

This is the cid-addressed equivalent of scx_bpf_cpuperf_set β€” literally its twin, fr fr.

A sub-sched needs SCX_CAP_PERF on cid. That is the vibe check βœ…

Returns 0 if the target was applied, -EACCES if the write was denied for missing caps, and other -errnos if cid didn’t resolve. So yes, the return value is giving β€œdid it work or did permissions say absolutely not” 😭


🌈 SEE ALSO 🌈

Kernel file: ./kernel/sched/ext/ext.c β€” and here are all the refs, every single one, bestie, because we do not skip the lore πŸ’–

sending kisses from source/version ./kernel/sched/ext, dated October 2026, and signed by scx_bpf_cidperf_set(9) β€” that’s the whole page, bestie, periodt πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from