函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:his routine handles the overflow of the microsecond field* The tricky bits of code to handle the accurate clock support* were provided by Dave Mills (Mills@UDEL.EDU) of NTP fame.* They were originally developed for SUN and DEC kernels.

函数原型:int second_overflow(time64_t secs)

返回类型:int

参数:

类型参数名称
time64_tsecs
403  leap等于0
412  :clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)恒等于clock synchronized, no leap second
413  如果clock status bits: 按位与sert leap (rw)
417  否则如果clock status bits: 按位与delete leap (rw)
422  退出
423  :clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)恒等于sert leap second
424  如果非clock status bits: 按位与sert leap (rw) 的值则
428  leap等于负1
433  退出
434  :clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)恒等于delete leap second
435  如果非clock status bits: 按位与delete leap (rw) 的值则
439  leap等于1
445  退出
446  :clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)恒等于leap second in progress
447  second value of the next pending leapsecond, or TIME64_MAX if no leap 等于Located here for timespec[64]_valid_strict
448  clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)等于leap second has occurred
449  退出
450  :clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)恒等于leap second has occurred
451  如果非clock status bits: 按位与sert leap (rw) 按位或delete leap (rw) 的值的值则clock synchronization status* (TIME_ERROR prevents overwriting the CMOS clock)等于clock synchronized, no leap second
453  退出
458  maximum error (usecs): 加等于max frequency error (ns/s) NSEC_PER_USEC
459  如果maximum error (usecs): 大于yond max. dispersion
460  maximum error (usecs): 等于yond max. dispersion
461  clock status bits: 或等于clock unsynchronized (rw)
465  tick_length等于tick_length_base
467  delta等于ntp_offset_chunk(ime adjustment (nsecs): )
468  ime adjustment (nsecs): 减等于delta
469  tick_length加等于delta
472  pps_dec_valid()
474  如果非time_adjust则转到:out
477  如果time_adjust大于usecs
478  time_adjust减等于usecs
479  tick_length加等于MAX_TICKADJ_SCALED
480  转到:out
483  如果time_adjust小于负usecs
484  time_adjust加等于usecs
485  tick_length减等于MAX_TICKADJ_SCALED
486  转到:out
489  tick_length加等于time_adjustNSEC_PER_USECNTP_INTERVAL_FREQ左移NTP_SCALE_SHIFT
491  time_adjust等于0
493  out :
494  返回:leap
调用者
名称描述
accumulate_nsecs_to_secsaccumulate_nsecs_to_secs - Accumulates nsecs into secs* Helper function that accumulates the nsecs greater than a second* from the xtime_nsec field to the xtime_secs field.* It also calls into the NTP code to handle leapsecond processing.