函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__hrtimer_start_range_ns

函数原型:static int __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, u64 delta_ns, const enum hrtimer_mode mode, struct hrtimer_clock_base *base)

返回类型:int

参数:

类型参数名称
struct hrtimer *timer
ktime_ttim
u64delta_ns
const enum hrtimer_modemode
struct hrtimer_clock_base *base
1091  move hrtimer, called with base lock held
1093  如果mode按位与 Time value is relative to nowtim等于Add two ktime values and do a safety check for overflow:
1096  tim等于hrtimer_update_lowres(timer, tim, mode)
1098  hrtimer_set_expires_range_ns(timer, tim, delta_ns)
1101  new_base等于switch_hrtimer_base(timer, base, mode & Timer is bound to CPU (is only considered)
1103  返回:queue_hrtimer - internal function to (re)start a timer* The timer is inserted in expiry order. Insertion into the* red black tree is O(log(n)). Must hold the base lock.* Returns 1 when the new timer is the leftmost timer in the tree.
调用者
名称描述
hrtimer_start_range_nshrtimer_start_range_ns - (re)start an hrtimer*@timer: the timer to be added*@tim: expiry time*@delta_ns: "slack" range for the timer*@mode: timer mode: absolute (HRTIMER_MODE_ABS) or* relative (HRTIMER_MODE_REL), and pinned (HRTIMER_MODE_PINNED);* softirq