Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ntp_update_offset

Proto:static void ntp_update_offset(long offset)

Type:void

Parameter:

TypeParameterName
longoffset
302  If Not (clock status bits: & able PLL updates (rw) ) Then Return
305  If Not (clock status bits: & solution (0 = us, 1 = ns) (ro) ) Then
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  If Value for the false possibility is greater at compile time(clock status bits: & hold frequency (rw) ) Then 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  If Value for the false possibility is greater at compile time(secs > 1 << (PLL frequency factor (shift) + 1 + pll time constant: )) Then secs = 1 << PLL frequency factor (shift) + 1 + pll time constant:
338  freq_adj += offset64 * secs << NTP_SCALE_SHIFT - 2 * ( PLL frequency factor (shift) + 2 + pll time constant: )
341  freq_adj = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(freq_adj + quency offset (scaled nsecs/secs): , MAXFREQ_SCALED)
343  quency offset (scaled nsecs/secs): = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(freq_adj, - MAXFREQ_SCALED)
345  ime adjustment (nsecs): = div_s64 - signed 64bit divide with 32bit divisor*@dividend: signed 64bit dividend*@divisor: signed 32bit divisor
Caller
NameDescribe
process_adjtimex_modes