Function report |
Source Code:kernel\time\time.c |
Create Date:2022-07-28 10:38:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int do_sys_settimeofday64(const struct timespec64 *tv, const struct timezone *tz)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct timespec64 * | tv | |
const struct timezone * | tz |
171 | firsttime = 1 |
172 | error = 0 |
174 | If tv && Not timespec64_valid_settod(tv) Then Return -EINVAL |
177 | error = security_settime64(tv, tz) |
181 | If tz Then |
183 | If minutes west of Greenwich > 15 * 60 || minutes west of Greenwich < -15 * 60 Then Return -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 | If firsttime Then |
189 | firsttime = 0 |
190 | If Not tv Then timekeeping_warp_clock() |
194 | If tv Then Return Get and set timeofday |
196 | Return 0 |
Name | Describe |
---|---|
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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |