Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Add two ktime values and do a safety check for overflow:

Proto:ktime_t ktime_add_safe(const ktime_t lhs, const ktime_t rhs)

Type:ktime_t

Parameter:

TypeParameterName
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  If res < 0 || res < lhs || res < rhs Then res = 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  Return res
Caller
NameDescribe
__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