函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:include\linux\hrtimer.h Create Date:2022-07-27 06:40:53
首页 Copyright©Brick

485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
/**
 * hrtimer_forward_now - forward the timer expiry so it expires after now
 * @timer:  hrtimer to forward
 * @interval:   the interval to forward
 *
 * Forward the timer expiry so it will expire after the current time
 * of the hrtimer clock base. 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.
 */
static inline u64 hrtimer_forward_now(struct hrtimer *timer,
                      ktime_t interval)
{
    return hrtimer_forward(timer, timer->base->get_time(), interval);
}