函数逻辑报告 |
Source Code:kernel\time\time.c |
Create Date:2022-07-27 11:38:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct timespec64 * | tv | |
| const struct timezone * | tz |
| 171 | firsttime等于1 |
| 172 | error等于0 |
| 174 | 如果tv且非timespec64_valid_settod(tv)则返回:负EINVAL |
| 177 | error等于security_settime64(tv, tz) |
| 181 | 如果tz则 |
| 183 | 如果 minutes west of Greenwich 大于15乘60或 minutes west of Greenwich 小于负15乘60则返回:负EINVAL |
| 186 | The timezone where the local system is located. Used as a default by some* programs who obtain this value by using gettimeofday.等于tz |
| 187 | update_vsyscall_tz() |
| 188 | 如果firsttime则 |
| 189 | firsttime等于0 |
| 190 | 如果非tv则timekeeping_warp_clock() |
| 194 | 如果tv则返回:Get and set timeofday |
| 196 | 返回:0 |
| 名称 | 描述 |
|---|---|
| SYSCALL_DEFINE2 | |
| COMPAT_SYSCALL_DEFINE2 | |
| posix_clock_realtime_set | Set clock_realtime |
| SYSCALL_DEFINE2 | We preserve minimal support for CLOCK_REALTIME and CLOCK_MONOTONIC* as it is easy to remain compatible with little code. CLOCK_BOOTTIME* is also included for convenience as at least systemd uses it. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |