函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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)
178  如果error则返回:error
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  如果非tvtimekeeping_warp_clock()
194  如果tv则返回:Get and set timeofday
196  返回:0
调用者
名称描述
SYSCALL_DEFINE2
COMPAT_SYSCALL_DEFINE2
posix_clock_realtime_setSet clock_realtime
SYSCALL_DEFINE2We 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.