函数逻辑报告 |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-27 11:42:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_settimeofday64 - Sets the time of day.*@ts: pointer to the timespec64 variable containing the new time* Sets the time of day to the new time and update NTP and notify hrtimers
函数原型:int do_settimeofday64(const struct timespec64 *ts)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct timespec64 * | ts |
1226 | tk等于timekeeper |
1229 | ret等于0 |
1231 | 如果非timespec64_valid_settod(ts)则返回:负EINVAL |
1234 | raw_spin_lock_irqsave( & timekeeper_lock, flags) |
1235 | write_seqcount_begin( & seq) |
1241 | nanoseconds 等于 nanoseconds 减 nanoseconds |
1250 | tk_set_xtime(tk, ts) |
1251 | out : |
1254 | write_seqcount_end( & seq) |
1255 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) |
1260 | 如果非ret则audit_tk_injoffset(ts_delta) |
1263 | 返回:ret |
名称 | 描述 |
---|---|
do_sys_settimeofday64 | In case for some reason the CMOS clock has not already been running* in UTC, but in some local time: The first time we set the timezone,* we will warp the clock so that it is ticking UTC time instead of* local time |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |