Skip to content

KFunc scx_bpf_dsq_reenq

7.1

Re-enqueue tasks on a DSQ.

Definition

Iterate over all of the tasks currently enqueued on the DSQ identified by dsq_id, and re-enqueue them in the BPF scheduler. The following DSQs are supported:

  • Local DSQs (SCX_DSQ_LOCAL or SCX_DSQ_LOCAL_ON | $cpu)
  • User DSQs

Re-enqueues are performed asynchronously. Can be called from anywhere.

Parameters

dsq_id: DSQ to re-enqueue. reenq_flags: SCX_RENQ_*. aux: implicit BPF argument to access bpf_prog_aux hidden from BPF progs.

Signature

void scx_bpf_dsq_reenq(u64 dsq_id, u64 reenq_flags)

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