]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Document the ops compat strategy in compat.h/compat.bpf.h
authorTejun Heo <tj@kernel.org>
Sun, 19 Apr 2026 16:18:52 +0000 (06:18 -1000)
committerTejun Heo <tj@kernel.org>
Sun, 19 Apr 2026 17:47:47 +0000 (07:47 -1000)
commite613cc236188bafdc6dd30fd6d26f97b1661c512
tree54b43063b25ed87f3febf15e82c63ff69909c942
parent5425abc222bcdb6913aafb2a1449fe9b8cdb308e
sched_ext: Document the ops compat strategy in compat.h/compat.bpf.h

The comments around SCX_OPS_DEFINE() and SCX_OPS_OPEN() were vague about
how backward compatibility actually works. Expand them to describe the two
mechanisms: load-time BTF fix-up for additive changes, and multi-variant
struct_ops for incompatible ones.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
tools/sched_ext/include/scx/compat.bpf.h
tools/sched_ext/include/scx/compat.h