Skip to content

KFunc scx_bpf_task_running

v6.12

Set task's time slice.

Definition

Set p's time slice to slice.

Parameters

p: task of interest

slice: time slice to set in nano seconds.

Returns

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

Signature

bool scx_bpf_task_set_slice(struct task_struct *p, u64 slice)

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