函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\hrtimer.c Create Date:2022-07-27 11:40:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:move hrtimer, called with base lock held

函数原型:static inline int remove_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, bool restart)

返回类型:int

参数:

类型参数名称
struct hrtimer *timer
struct hrtimer_clock_base *base
boolrestart
1018  state等于state
1020  如果state按位与HRTIMER_STATE_ENQUEUED
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  如果非restartstate等于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  返回:1
1040  返回:0
调用者
名称描述
__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