Function report |
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 activity | Download SCCT | Chinese |
Name:ntp_update_offset
Proto:static void ntp_update_offset(long offset)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
long | offset |
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 |
308 | offset *= NSEC_PER_USEC |
322 | If Value for the false possibility is greater at compile time(clock status bits: & hold frequency (rw) ) Then secs = 0 |
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 |
Name | Describe |
---|---|
process_adjtimex_modes |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |