函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Add two ktime values and do a safety check for overflow:

函数原型:ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs)

返回类型:ktime_t

参数:

类型参数名称
const ktime_tlhs
const ktime_trhs
325  res等于Same as ktime_add(), but avoids undefined behaviour on overflow; however,* this means that you must check the result for overflow yourself.(lhs, rhs)
331  如果res小于0或res小于lhsres小于rhsres等于ktime_set - Set a ktime_t variable from a seconds/nanoseconds value*@secs: seconds to set*@nsecs: nanoseconds to set* Return: The ktime_t representation of the value.
334  返回:res
调用者
名称描述
__hrtimer_start_range_ns
alarm_start_relativealarm_start_relative - Sets a relative alarm to fire*@alarm: ptr to alarm to set*@start: time relative to now to run the alarm
alarm_forward
common_hrtimer_arm
SYSCALL_DEFINE6
hrtimer_set_expires_range
hrtimer_set_expires_range_ns
hrtimer_add_expires