Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-stubs.c Create Date:2022-07-28 10:49:30
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(clock_getres, const clockid_t, which_clock, struct __kernel_timespec __user *, tp)

Type:

Parameter:Nothing

107  struct timespec64 rtn_tp = { seconds = 0, nanoseconds = hrtimer_resolution, }
113  Case which_clock == The IDs of the various system clocks (for POSIX.1b interval timers):
114  Case which_clock == CLOCK_MONOTONIC
115  Case which_clock == CLOCK_BOOTTIME
116  If put_timespec64( & rtn_tp, tp) Then Return -EFAULT
118  Return 0
119  Default
120  Return -EINVAL