Skip to main content

register_kernel_timer

Function register_kernel_timer 

Source
pub fn register_kernel_timer(
    deadline: MonotonicDeadline,
    callback: KernelTimerCallback,
) -> Result<KernelTimerHandle, KernelTimerError>
Expand description

Registers a one-shot callback on the calling CPU’s shared timer base.

The callback runs in ktimers/<cpu> task context without the timer-base lock held.