Skip to content

KFunc scx_bpf_task_running

v6.12

Set task's virtual time for DSQ ordering.

Definition

Set p's virtual time to vtime.

Parameters

p: task of interest

vtime: virtual time to set

Returns

true on success, false if the calling scheduler doesn't have authority over p.

Signature

bool scx_bpf_task_set_dsq_vtime(struct task_struct *p, u64 vtime)

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