函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-29 10:37:05
Last Modify:2020-03-18 10:25:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SYSCALL_DEFINE5

函数原型:SYSCALL_DEFINE5(ppoll, struct pollfd __user *, ufds, unsigned int, nfds, struct __kernel_timespec __user *, tsp, const sigset_t __user *, sigmask, size_t, sigsetsize)

返回类型:

参数:

1085  struct timespec64 ts, end_time, * to = NULL
1088  如果tsp
1089  如果get_timespec64( & ts, tsp)则返回:负EFAULT
1092  to等于end_time
1093  如果poll_select_set_timeout - helper function to setup the timeout value*@to: pointer to timespec64 variable for the final timeout*@sec: seconds (from user space)*@nsec: nanoseconds (from user space)* Note, we do not use a timespec for the user space value 则返回:负EINVAL
1097  ret等于The api helps set app-provided sigmasks
1098  如果ret则返回:ret
1101  ret等于do_sys_poll(ufds, nfds, to)
1102  返回:poll_select_finish( & end_time, tsp, PT_TIMESPEC, ret)