KFunc scx_bpf_reenqueue_local
This function re-enqueues tasks on a local DSQ.
Definition
Iterate over all of the tasks currently enqueued on the local DSQ of the caller's CPU, and re-enqueue them in the BPF scheduler. Can be called from anywhere.
Warn
This kfunc is deprecated in favor of scx_bpf_reenqueue_local___v2. Until kernel v7.3 (4 releases after v6.19) at which time this old implementation is deleted and scx_bpf_reenqueue_local___v2 is renamed to scx_bpf_reenqueue_local, a breaking change in the function signature.
Its recommended to use the scx_bpf_reenqueue_local function from the SCX common library instead of defining the kfunc manually to facilitate smooth transition across kernel versions.
Returns
The number of processed tasks. Can only be called from sched_ext_ops.cpu_release.
Signature
u32 scx_bpf_reenqueue_local()
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