Skip to content

KFunc scx_bpf_cpuperf_cap

v6.12

This function queries the maximum relative capacity of a CPU.

Definition

Parameters:

cpu: CPU of interest

Returns

The maximum relative capacity of cpu in relation to the most performant CPU in the system. The return value is in the range [1, SCX_CPUPERF_ONE]. See scx_bpf_cpuperf_cur.

Signature

u32 scx_bpf_cpuperf_cap(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