Skip to content

KFunc scx_bpf_cpu_rq

v6.12

This function fetches the rq (run queue) of a CPU.

Warning

This kfunc was deprecated in v6.18 and removed in v7.3, it is no longer available. Use scx_bpf_locked_rq to access the locked run queue, or scx_bpf_cpu_curr to look up the current task of a remote CPU instead.

Definition

Parameters

cpu: CPU of the rq

Signature

struct rq *scx_bpf_cpu_rq(s32 cpu)

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