Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:03
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kern_select

Proto:static int kern_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct __kernel_old_timeval __user *tvp)

Type:int

Parameter:

TypeParameterName
intn
fd_set __user *inp
fd_set __user *outp
fd_set __user *exp
struct __kernel_old_timeval __user *tvp
703  struct timespec64 end_time, * to = NULL
707  If tvp Then
708  If copy_from_user( & tv, tvp, size of tv ) Then Return -EFAULT
711  to = end_time
712  If 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 Then Return -EINVAL
718  ret = We can actually return ERESTARTSYS instead of EINTR, but I'd* like to be certain this leads to no problems. So I return* EINTR just for safety.* Update: ERESTARTSYS breaks at least the xview clock binary, so
719  Return poll_select_finish( & end_time, tvp, PT_TIMEVAL, ret)
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE1