Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:posix_cpu_nsleep

Proto:static int posix_cpu_nsleep(const clockid_t which_clock, int flags, const struct timespec64 *rqtp)

Type:int

Parameter:

TypeParameterName
const clockid_twhich_clock
intflags
const struct timespec64 *rqtp
1320  restart_block = restart_block
1326  If CPUCLOCK_PERTHREAD(which_clock) && ( Bit fields within a clockid:* The most significant 29 bits hold either a pid or a file descriptor.* Bit 2 indicates whether a cpu clock refers to a thread or a process.* Bits 1 and 0 give the type: PROF=0, VIRT=1, SCHED=2, or FD=3.(which_clock) == 0 || Bit fields within a clockid:* The most significant 29 bits hold either a pid or a file descriptor.* Bit 2 indicates whether a cpu clock refers to a thread or a process.* Bits 1 and 0 give the type: PROF=0, VIRT=1, SCHED=2, or FD=3.(which_clock) == task_pid_vnr(current process) ) Then Return -EINVAL
1331  error = do_cpu_nanosleep(which_clock, flags, rqtp)
1333  If error == -start by calling sys_restart_syscall Then
1335  If flags & The various flags for setting POSIX.1b interval timers: Then Return -start if no handler..
1338  fn = posix_cpu_nsleep_restart
1339  clockid = which_clock
1341  Return error
Caller
NameDescribe
process_cpu_nsleep