函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:mekeeping_inject_offset - Adds or subtracts from the current time.*@tv: pointer to the timespec variable containing the offset* Adds or subtracts an offset value from the current time.
函数原型:static int timekeeping_inject_offset(const struct timespec64 *ts)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct timespec64 * | ts |
| 1275 | tk等于timekeeper |
| 1278 | ret等于0 |
| 1280 | 如果 nanoseconds 小于0或 nanoseconds 大于等于NSEC_PER_SEC则返回:负EINVAL |
| 1283 | raw_spin_lock_irqsave( & timekeeper_lock, flags) |
| 1284 | write_seqcount_begin( & seq) |
| 1289 | tmp等于timespec64_add(tk_xtime(tk), * ts) |
| 1296 | tk_xtime_add(tk, ts) |
| 1299 | error : |
| 1302 | write_seqcount_end( & seq) |
| 1303 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) |
| 1308 | 返回:ret |
| 名称 | 描述 |
|---|---|
| timekeeping_warp_clock | Adjust the time obtained from the CMOS to be UTC time instead of* local time |
| do_adjtimex | do_adjtimex() - Accessor function to NTP __do_adjtimex function |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |