Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\time.c Create Date:2022-07-28 10:38:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:COMPAT_SYSCALL_DEFINE2

Proto:COMPAT_SYSCALL_DEFINE2(settimeofday, struct old_timeval32 __user *, tv, struct timezone __user *, tz)

Type:

Parameter:Nothing

249  If tv Then
250  If Get a simple variable from user space( seconds , & tv_sec) || Get a simple variable from user space( nanoseconds , & tv_usec) Then Return -EFAULT
254  If nanoseconds > USEC_PER_SEC || nanoseconds < 0 Then Return -EINVAL
257  nanoseconds *= NSEC_PER_USEC
259  If tz Then
260  If copy_from_user( & new_tz, tz, size of tz ) Then Return -EFAULT
264  Return 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