Skip to content

Commit 153591f

Browse files
multics69htejun
authored andcommitted
sched_ext: Clarify sched_ext_ops table for userland scheduler
Update the comments in sched_ext_ops to clarify this table is for a BPF scheduler and a userland scheduler should also rely on the sched_ext_ops table through the BPF scheduler. Signed-off-by: Changwoo Min <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent e32c260 commit 153591f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kernel/sched/ext.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ struct scx_dump_ctx {
199199
/**
200200
* struct sched_ext_ops - Operation table for BPF scheduler implementation
201201
*
202-
* Userland can implement an arbitrary scheduling policy by implementing and
203-
* loading operations in this table.
202+
* A BPF scheduler can implement an arbitrary scheduling policy by
203+
* implementing and loading operations in this table. Note that a userland
204+
* scheduling policy can also be implemented using the BPF scheduler
205+
* as a shim layer.
204206
*/
205207
struct sched_ext_ops {
206208
/**

0 commit comments

Comments
 (0)