函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:logarithmic_accumulation - shifted accumulation of cycles* This functions accumulates a shifted interval of cycles into* into a shifted interval nanoseconds. Allows for O(log) accumulation* loop.* Returns the unconsumed cycles.
函数原型:static u64 logarithmic_accumulation(struct timekeeper *tk, u64 offset, unsigned int shift, unsigned int *clock_set)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timekeeper * | tk | |
u64 | offset | |
unsigned int | shift | |
unsigned int * | clock_set |
2022 | cycle_last加等于interval |
2023 | cycle_last加等于interval |
2025 | xtime_nsec加等于xtime_interval左移shift位 |
2029 | xtime_nsec加等于raw_interval左移shift位 |
2030 | snsec_per_sec等于NSEC_PER_SEC左移shift位 |
2031 | 当xtime_nsec大于等于snsec_per_sec循环 |
2032 | xtime_nsec减等于snsec_per_sec |
2033 | raw_sec自加 |
2038 | Difference between accumulated time and NTP time in ntp* shifted nano seconds. 减等于xtime_interval加xtime_remainder左移ntp_error_shift加shift位 |
2041 | 返回:offset |
名称 | 描述 |
---|---|
timekeeping_advance | mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |