函数逻辑报告 |
Source Code:kernel\time\ntp.c |
Create Date:2022-07-27 11:43:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:adjtimex mainly allows reading (and writing, if superuser) of* kernel time-keeping variables. used by xntpd.
函数原型:int __do_adjtimex(struct __kernel_timex *txc, const struct timespec64 *ts, s32 *time_tai, struct audit_ntp_data *ad)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct __kernel_timex * | txc | |
const struct timespec64 * | ts | |
s32 * | time_tai | |
struct audit_ntp_data * | ad |
719 | 如果 mode selector 按位与switch between adjtime/adjtimex modes 则 |
720 | save_adjust等于time_adjust |
722 | 如果非 mode selector 按位与ad-only adjtime 的值则 |
731 | 否则 |
733 | 如果 mode selector 则 |
737 | audit_ntp_set_old(ad, AUDIT_NTP_TAI, * time_tai) |
745 | audit_ntp_set_new(ad, AUDIT_NTP_TAI, * time_tai) |
760 | frequency offset (scaled ppm) 等于Required to safely shift negative values ((quency offset (scaled nsecs/secs): >> PPM_SCALE_INV_SHIFT) * PPM_SCALE_INV, NTP_SCALE_SHIFT) |
769 | TAI offset (ro) 等于time_tai |
772 | pps_fill_timex(txc) |
775 | tv_usec等于 nanoseconds |
776 | 如果非clock status bits: 按位与solution (0 = us, 1 = ns) (ro) 的值则tv_usec等于 nanoseconds 除NSEC_PER_USEC |
797 | 返回:result |
名称 | 描述 |
---|---|
do_adjtimex | do_adjtimex() - Accessor function to NTP __do_adjtimex function |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |