Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alarm_forward

Proto:u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)

Type:u64

Parameter:

TypeParameterName
struct alarm *alarm
ktime_tnow
ktime_tinterval
452  overrun = 1
455  delta = Subtract two ktime_t variables. rem = lhs -rhs: (now, expires)
457  If delta < 0 Then Return 0
460  If Value for the false possibility is greater at compile time(delta >= interval) Then
461  incr = Convert ktime_t to nanoseconds
463  overrun = ktime_divns(delta, incr)
465  expires = Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(expires, incr * overrun)
468  If expires > now Then Return overrun
474  overrun++
477  expires = Add two ktime values and do a safety check for overflow:
478  Return overrun
Caller
NameDescribe
alarm_forward_now