函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alarm_forward

函数原型:u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval)

返回类型:u64

参数:

类型参数名称
struct alarm *alarm
ktime_tnow
ktime_tinterval
452  overrun等于1
455  delta等于Subtract two ktime_t variables. rem = lhs -rhs: (now, expires)
457  如果delta小于0则返回:0
460  如果此条件成立可能性小(为编译器优化)(delta >= interval)则
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  如果expires大于now则返回:overrun
474  overrun自加
477  expires等于Add two ktime values and do a safety check for overflow:
478  返回:overrun
调用者
名称描述
alarm_forward_now