summaryrefslogtreecommitdiff
path: root/include/linux/pgalloc.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-03-06 20:58:03 +0300
committerTejun Heo <tj@kernel.org>2026-03-06 20:58:03 +0300
commit105dcd005be2ac1d5541921db8feb1d0f98d59d5 (patch)
tree9c35ad5b8bb1b20e6e4b221605fb47e17593abd0 /include/linux/pgalloc.h
parent88234b075c3fc23d57406e1867523b6aba783ebf (diff)
downloadlinux-105dcd005be2ac1d5541921db8feb1d0f98d59d5.tar.xz
sched_ext: Introduce scx_prog_sched()
In preparation for multiple scheduler support, introduce scx_prog_sched() accessor which returns the scx_sched instance associated with a BPF program. The association is determined via the special KF_IMPLICIT_ARGS kfunc parameter, which provides access to bpf_prog_aux. This aux can be used to retrieve the struct_ops (sched_ext_ops) that the program is associated with, and from there, the corresponding scx_sched instance. For compatibility, when ops.sub_attach is not implemented (older schedulers without sub-scheduler support), unassociated programs fall back to scx_root. A warning is logged once per scheduler for such programs. As scx_root is still the only scheduler, this shouldn't introduce user-visible behavior changes. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'include/linux/pgalloc.h')
0 files changed, 0 insertions, 0 deletions