函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Adjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value.
函数原型:static void timekeeping_adjust(struct timekeeper *tk, s64 offset)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timekeeper * | tk | |
s64 | offset |
1908 | mult等于mult减ntp_err_mult |
1909 | 否则 |
1921 | ntp_err_mult等于如果Difference between accumulated time and NTP time in ntp* shifted nano seconds. 大于0则1否则0 |
1922 | mult加等于ntp_err_mult |
1929 | Print a one-time message (analogous to WARN_ONCE() et al):(warning conditions "Adjusting %s more than 11%% (%ld vs %ld)\n", name, (long)mult, (long)mult + maxadj) |
1945 | 如果此条件成立可能性小(为编译器优化)((s64)xtime_nsec < 0)则 |
1946 | xtime_nsec加等于NSEC_PER_SEC左移shift位 |
1948 | xtime_sec自减 |
名称 | 描述 |
---|---|
timekeeping_advance | mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |