Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\hrtimer.c Create Date:2022-07-28 10:40:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:move hrtimer, called with base lock held

Proto:static inline int remove_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, bool restart)

Type:int

Parameter:

TypeParameterName
struct hrtimer *timer
struct hrtimer_clock_base *base
boolrestart
1018  state = state
1020  If state & HRTIMER_STATE_ENQUEUED Then
1031  debug_deactivate(timer)
1032  reprogram = cpu_base == this_cpu_ptr( & The timer bases:* There are more clockids than hrtimer bases. Thus, we index* into the timer bases by the hrtimer_base_type enum. When trying* to reach a base using a clockid, hrtimer_clockid_to_base())
1034  If Not restart Then state = Values to track state of the timer* Possible states:* 0x00 inactive* 0x01 enqueued into rbtree* The callback state is not part of the timer->state because clearing it would* mean touching the timer after the callback, this makes it impossible to free
1037  __remove_hrtimer - internal function to remove a timer* Caller must hold the base lock.* High resolution timer mode reprograms the clock event device when the* timer is the one which expires next. The caller can disable this by setting* reprogram to zero
1038  Return 1
1040  Return 0
Caller
NameDescribe
__hrtimer_start_range_ns
hrtimer_try_to_cancelhrtimer_try_to_cancel - try to deactivate a timer*@timer: hrtimer to stop* Returns:* * 0 when the timer was not active* * 1 when the timer was active* * -1 when the timer is currently executing the callback function and* cannot be stopped