函数逻辑报告 | 
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 | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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_t | secs | 
| 403 | leap等于0 | 
| 413 | 如果clock status bits: 按位与sert leap (rw) 则 | 
| 417 | 否则如果clock status bits: 按位与delete leap (rw) 则 | 
| 422 | 退出 | 
| 424 | 如果非clock status bits: 按位与sert leap (rw) 的值则 | 
| 428 | leap等于负1 | 
| 433 | 退出 | 
| 435 | 如果非clock status bits: 按位与delete leap (rw) 的值则 | 
| 439 | leap等于1 | 
| 440 | second value of the next pending leapsecond, or TIME64_MAX if no leap 等于Located here for timespec[64]_valid_strict | 
| 445 | 退出 | 
| 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 | 退出 | 
| 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 | 退出 | 
| 459 | 如果maximum error (usecs): 大于yond max. dispersion 则 | 
| 468 | ime adjustment (nsecs): 减等于delta | 
| 469 | tick_length加等于delta | 
| 472 | pps_dec_valid() | 
| 474 | 如果非time_adjust则转到:out | 
| 477 | 如果time_adjust大于usecs 则 | 
| 483 | 如果time_adjust小于负usecs 则 | 
| 491 | time_adjust等于0 | 
| 493 | out : | 
| 494 | 返回:leap | 
| 名称 | 描述 | 
|---|---|
| accumulate_nsecs_to_secs | accumulate_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. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |