函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\time.c Create Date:2022-07-27 11:38:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SYSCALL_DEFINE2

函数原型:SYSCALL_DEFINE2(settimeofday, struct __kernel_old_timeval __user *, tv, struct timezone __user *, tz)

返回类型:

参数:

205  如果tv
206  如果Careful: we have to cast the result to the type of the pointer* for sign reasons( seconds , & tv_sec)或Careful: we have to cast the result to the type of the pointer* for sign reasons( nanoseconds , & tv_usec)则返回:负EFAULT
210  如果 nanoseconds 大于USEC_PER_SEC nanoseconds 小于0则返回:负EINVAL
213  nanoseconds 乘等于NSEC_PER_USEC
215  如果tz
216  如果copy_from_user( & new_tz, tz, tz的长度)则返回:负EFAULT
220  返回: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