函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:COMPAT_SYSCALL_DEFINE2

函数原型:COMPAT_SYSCALL_DEFINE2(settimeofday, struct old_timeval32 __user *, tv, struct timezone __user *, tz)

返回类型:

参数:

249  如果tv
250  如果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
254  如果 nanoseconds 大于USEC_PER_SEC nanoseconds 小于0则返回:负EINVAL
257  nanoseconds 乘等于NSEC_PER_USEC
259  如果tz
260  如果copy_from_user( & new_tz, tz, tz的长度)则返回:负EFAULT
264  返回: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