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:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE4

Proto:SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, const struct __kernel_timespec __user *, rqtp, struct __kernel_timespec __user *, rmtp)

Type:

Parameter:Nothing

131  Case which_clock == The IDs of the various system clocks (for POSIX.1b interval timers):
132  Case which_clock == CLOCK_MONOTONIC
133  Case which_clock == CLOCK_BOOTTIME
134  Break
135  Default
136  Return -EINVAL
139  If get_timespec64( & t, rqtp) Then Return -EFAULT
141  If Not Returns true if the timespec64 is norm, false if denorm: Then Return -EINVAL
143  If prefix, newline flags & The various flags for setting POSIX.1b interval timers: Then rmtp = NULL
145  type = If rmtp Then TT_NATIVE Else TT_NONE
146  rmtp = rmtp
147  Return hrtimer_nanosleep( & t, prefix, newline flags & The various flags for setting POSIX.1b interval timers: ? Time value is absolute : Time value is relative to now, which_clock)