函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ntp_update_offset

函数原型:static void ntp_update_offset(long offset)

返回类型:void

参数:

类型参数名称
longoffset
302  如果非clock status bits: 按位与able PLL updates (rw) 的值则返回
305  如果非clock status bits: 按位与solution (0 = us, 1 = ns) (ro) 的值则
307  offset等于clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(offset, - USEC_PER_SEC, USEC_PER_SEC)
308  offset乘等于NSEC_PER_USEC
315  offset等于clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(offset, - max phase error (ns) , max phase error (ns) )
321  secs等于__ktime_get_real_seconds - The same as ktime_get_real_seconds* but without the sequence counter protect. This internal function* is called just when timekeeping lock is already held.ime at last adjustment (secs):
322  如果此条件成立可能性小(为编译器优化)(clock status bits: & hold frequency (rw) )则secs等于0
325  ime at last adjustment (secs): 等于__ktime_get_real_seconds - The same as ktime_get_real_seconds* but without the sequence counter protect. This internal function* is called just when timekeeping lock is already held.
327  offset64等于offset
328  freq_adj等于ntp_update_offset_fll(offset64, secs)
335  如果此条件成立可能性小(为编译器优化)(secs > 1 << (PLL frequency factor (shift) + 1 + pll time constant: ))则secs等于1左移PLL frequency factor (shift) 加1加pll time constant:
338  freq_adj加等于offset64secs左移NTP_SCALE_SHIFT减2乘PLL frequency factor (shift) 加2加pll time constant: 的和位
341  freq_adj等于两数取小(freq_adj + quency offset (scaled nsecs/secs): , MAXFREQ_SCALED)
343  quency offset (scaled nsecs/secs): 等于两数取大(freq_adj, - MAXFREQ_SCALED)
345  ime adjustment (nsecs): 等于div_s64 - signed 64bit divide with 32bit divisor*@dividend: signed 64bit dividend*@divisor: signed 32bit divisor
调用者
名称描述
process_adjtimex_modes