函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_compat_select

函数原型:static int do_compat_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp, compat_ulong_t __user *exp, struct old_timeval32 __user *tvp)

返回类型:int

参数:

类型参数名称
intn
compat_ulong_t __user *inp
compat_ulong_t __user *outp
compat_ulong_t __user *exp
struct old_timeval32 __user *tvp
1249  struct timespec64 end_time, * to = NULL
1253  如果tvp
1254  如果copy_from_user( & tv, tvp, tv的长度)则返回:负EFAULT
1257  to等于end_time
1258  如果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
1264  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
1265  返回:poll_select_finish( & end_time, tvp, PT_OLD_TIMEVAL, ret)
调用者
名称描述
COMPAT_SYSCALL_DEFINE5
COMPAT_SYSCALL_DEFINE1