Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__hrtimer_start_range_ns

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If mode & Time value is relative to now Then tim = 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  Return 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.
Caller
NameDescribe
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