Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The TICK_NSEC - 1 rounds up the value to the next resolution

Proto:static unsigned long __timespec64_to_jiffies(u64 sec, long nsec)

Type:unsigned long

Parameter:

TypeParameterName
u64sec
longnsec= nsec % TICK_NSEC; is NOT a correct resolution rounding.
632  = nsec % TICK_NSEC; is NOT a correct resolution rounding. = = nsec % TICK_NSEC; is NOT a correct resolution rounding. + TICK_NSEC is the time between ticks in nsec assuming SHIFTED_HZ - 1
634  If sec >= The maximum jiffie value is (MAX_INT >> 1). Here we translate that* into seconds. The 64-bit case will overflow if we are not careful,* so use the messy SH_DIV macro to do it. Still all constants. Then
635  sec = The maximum jiffie value is (MAX_INT >> 1). Here we translate that* into seconds. The 64-bit case will overflow if we are not careful,* so use the messy SH_DIV macro to do it. Still all constants.
636  = nsec % TICK_NSEC; is NOT a correct resolution rounding. = 0
638  Return sec * SEC_CONVERSION + ( = nsec % TICK_NSEC; is NOT a correct resolution rounding. * NSEC_CONVERSION >> NSEC_JIFFIE_SC - Here are the scales we will use. One for seconds, nanoseconds and* microseconds.* Within the limits of cpp we do a rough cut at the SEC_JIFFIE_SC and* check if the sign bit is set. If not, we bump the shift count by 1. ) >> Here are the scales we will use. One for seconds, nanoseconds and* microseconds.* Within the limits of cpp we do a rough cut at the SEC_JIFFIE_SC and* check if the sign bit is set. If not, we bump the shift count by 1.
Caller
NameDescribe
__timespec_to_jiffies
timespec64_to_jiffies