函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-cpu-timers.c Create Date:2022-07-27 11:48:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:posix_cpu_nsleep

函数原型:static int posix_cpu_nsleep(const clockid_t which_clock, int flags, const struct timespec64 *rqtp)

返回类型:int

参数:

类型参数名称
const clockid_twhich_clock
intflags
const struct timespec64 *rqtp
1320  restart_block等于restart_block
1326  如果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(当前进程)的值则返回:负EINVAL
1331  error等于do_cpu_nanosleep(which_clock, flags, rqtp)
1333  如果error恒等于负start by calling sys_restart_syscall
1335  如果flags按位与The various flags for setting POSIX.1b interval timers:则返回:负start if no handler..
1338  fn等于posix_cpu_nsleep_restart
1339  clockid等于which_clock
1341  返回:error
调用者
名称描述
process_cpu_nsleep