函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static inline unsigned int accumulate_nsecs_to_secs(struct timekeeper *tk)
返回类型:unsigned int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timekeeper * | tk |
1963 | nsecps等于NSEC_PER_SEC左移shift位 |
1964 | clock_set等于0 |
1966 | 当xtime_nsec大于等于nsecps循环 |
1969 | xtime_nsec减等于nsecps |
1970 | xtime_sec自加 |
1978 | 继续下一循环 |
1983 | 如果此条件成立可能性小(为编译器优化)(leap)则 |
1989 | nanoseconds 等于0 |
1995 | clock_set等于TK_CLOCK_WAS_SET |
1998 | 返回:clock_set |
名称 | 描述 |
---|---|
logarithmic_accumulation | 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. |
timekeeping_advance | mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |