Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:process_adjtimex_modes

Proto:static inline void process_adjtimex_modes(const struct __kernel_timex *txc, s32 *time_tai)

Type:void

Parameter:

TypeParameterName
const struct __kernel_timex *txc
s32 *time_tai
664  If mode selector & clock status Then Propagate a new txc->status value into the NTP state:
667  If mode selector & select nanosecond resolution Then clock status bits: |= solution (0 = us, 1 = ns) (ro)
670  If mode selector & select microsecond resolution Then clock status bits: &= ~solution (0 = us, 1 = ns) (ro)
673  If mode selector & quency offset Then
674  quency offset (scaled nsecs/secs): = frequency offset (scaled ppm) * PPM_SCALE
675  quency offset (scaled nsecs/secs): = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(quency offset (scaled nsecs/secs): , MAXFREQ_SCALED)
676  quency offset (scaled nsecs/secs): = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(quency offset (scaled nsecs/secs): , - MAXFREQ_SCALED)
678  pps_set_freq(quency offset (scaled nsecs/secs): )
681  If mode selector & maximum time error Then maximum error (usecs): = maximum error (usec)
684  If mode selector & stimated time error Then stimated error (usecs): = estimated error (usec)
687  If mode selector & pll time constant Then
688  pll time constant: = pll time constant
689  If Not (clock status bits: & solution (0 = us, 1 = ns) (ro) ) Then pll time constant: += 4
691  pll time constant: = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pll time constant: , (long)maximum time constant (shift) )
692  pll time constant: = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(pll time constant: , 0l)
695  If mode selector & set TAI offset && pll time constant >= 0 && pll time constant <= MAX_TAI_OFFSET Then time_tai = pll time constant
699  If mode selector & ime offset Then ntp_update_offset( time offset (usec) )
702  If mode selector & ick value Then USER_HZ period (usecs): = (modified) usecs between clock ticks
705  If mode selector & ( ick value | quency offset | ime offset ) Then Update (tick_length, tick_length_base, tick_nsec), based* on (tick_usec, ntp_tick_adj, time_freq):
Caller
NameDescribe
__do_adjtimexadjtimex mainly allows reading (and writing, if superuser) of* kernel time-keeping variables. used by xntpd.