Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE2

Proto:SYSCALL_DEFINE2(settimeofday, struct __kernel_old_timeval __user *, tv, struct timezone __user *, tz)

Type:

Parameter:Nothing

205  If tv Then
206  If Get a simple variable from user space( seconds , & tv_sec) || Get a simple variable from user space( nanoseconds , & tv_usec) Then Return -EFAULT
210  If nanoseconds > USEC_PER_SEC || nanoseconds < 0 Then Return -EINVAL
213  nanoseconds *= NSEC_PER_USEC
215  If tz Then
216  If copy_from_user( & new_tz, tz, size of tz ) Then Return -EFAULT
220  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