函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_device_system_crosststamp - Synchronously capture system/device timestamp*@get_time_fn: Callback to get simultaneous device time and* system counter from the device driver*@ctx: Context passed to get_time_fn()*@history_begin: Historical reference
函数原型:int get_device_system_crosststamp(int (*get_time_fn)(ktime_t *device_time, struct system_counterval_t *sys_counterval, void *ctx), void *ctx, struct system_time_snapshot *history_begin, struct system_device_crosststamp *xtstamp)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int (* | get_time_fn | |
void * | ctx | |
struct system_time_snapshot * | history_begin | |
struct system_device_crosststamp * | xtstamp |
1126 | tk等于timekeeper |
1128 | clock_was_set_seq等于0 |
1136 | 循环 |
1142 | ret等于get_time_fn( & device, & system_counterval, ctx) |
1160 | interval_start等于cycle_last |
1164 | cycles等于interval_start |
1165 | do_interp = true |
1166 | 否则 |
1167 | do_interp = false |
1174 | nsec_real等于timekeeping_cycles_to_ns( & tkr_mono, cycles) |
1176 | nsec_raw等于timekeeping_cycles_to_ns( & tkr_raw, cycles) |
1180 | sys_realtime等于Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base_real, nsec_real) |
1181 | sys_monoraw等于Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base_raw, nsec_raw) |
1187 | 如果do_interp则 |
1196 | 如果非history_begin或非ycle_between - true if test occurs chronologically between before and after或cs_was_changed_seq不等于cs_was_changed_seq则返回:负EINVAL |
1202 | total_history_cycles等于cycles减cycles |
1214 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |