KFunc scx_bpf_test_and_clear_cpu_idle
This function tests and clears cpu's idle state.
Definition
Unavailable if sched_ext_ops.update_idle is implemented and SCX_OPS_KEEP_BUILTIN_IDLE is not set.
Parameters
cpu: cpu to test and clear idle for
Returns
true if cpu was idle and its idle state was successfully cleared. false otherwise.
Signature
bool scx_bpf_test_and_clear_cpu_idle(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