KFunc scx_bpf_kick_cid
Trigger reschedule on the CPU mapped to cid.
Definition
cid-addressed equivalent of scx_bpf_kick_cpu.
Parameters
cid: cid to kick
flags: SCX_KICK_* flags
Flags
SCX_KICK_IDLE: Kick the target CPU if idle. Guarantees that the target CPU goes through at least one full scheduling cycle before going idle. If the target CPU can be determined to be currently not idle and going to go through a scheduling cycle before going idle, noop.
SCX_KICK_PREEMPT: Preempt the current task and execute the dispatch path. If the current task of the target CPU is an SCX task, its ->scx.slice is cleared to zero before the scheduling path is invoked so that the task expires and the dispatch path is invoked.
SCX_KICK_WAIT: Wait for the CPU to be rescheduled. The scx_bpf_kick_cpu call will return after the target CPU finishes picking the next task.
Returns
0 on success, -errno otherwise.
Signature
s32 scx_bpf_kick_cid(s32 cid, u64 flags)
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