函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The TICK_NSEC - 1 rounds up the value to the next resolution

函数原型:static unsigned long __timespec64_to_jiffies(u64 sec, long nsec)

返回类型:unsigned long

参数:

类型参数名称
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  如果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.
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  返回:secSEC_CONVERSION= nsec % TICK_NSEC; is NOT a correct resolution rounding.NSEC_CONVERSION右移NSEC_JIFFIE_SCHere 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.
调用者
名称描述
__timespec_to_jiffies
timespec64_to_jiffies