Skip to content

KFunc scx_bpf_sub_dispatch

7.1

Trigger dispatching on a child scheduler.

Definition

Allows a parent scheduler to trigger dispatching on one of its direct child schedulers. The child scheduler runs its dispatch operation to move tasks from dispatch queues to the local run-queue.

Parameters

cgroup_id: cgroup ID of the child scheduler to dispatch. aux: implicit BPF argument to access bpf_prog_aux hidden from BPF progs.

Returns

true on success, false if cgroup_id is invalid, not a direct child, or caller lacks dispatch permission.

Signature

bool scx_bpf_sub_dispatch(u64 cgroup_id)

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

The following program types can make use of this kfunc:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome