Scroll to navigation

HRTIMER_FORWARD(9) Driver Basics HRTIMER_FORWARD(9)

NAME

hrtimer_forward - forward the timer expiry

SYNOPSIS

u64 hrtimer_forward(struct hrtimer * timer, ktime_t now, ktime_t interval);

ARGUMENTS

timer

hrtimer to forward

now

forward past this time

interval

the interval to forward

DESCRIPTION

Forward the timer expiry so it will expire in the future. Returns the number of overruns.

Can be safely called from the callback function of timer. If called from other contexts timer must neither be enqueued nor running the callback and the caller needs to take care of serialization.

NOTE

This only updates the timer expiry value and does not requeue the timer.

COPYRIGHT

January 2017 Kernel Hackers Manual 4.8.