函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Most architectures can't handle 7-argument syscalls. So we provide a* 6-argument version where the sixth argument is a pointer to a structure* which has a pointer to the sigset_t itself followed by a size_t containing* the sigset size.

函数原型:SYSCALL_DEFINE6(pselect6, int, n, fd_set __user *, inp, fd_set __user *, outp, fd_set __user *, exp, struct __kernel_timespec __user *, tsp, void __user *, sig)

返回类型:

参数:

773  sigsetsize等于0
774  sigset_t __user * up = NULL
776  如果sig
777  如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(sig, *的长度 + sizeof(size_t))或__get_user - Get a simple variable from user space, with less checking(up, (sigset_t__user * __user * )sig)或__get_user - Get a simple variable from user space, with less checking(sigsetsize, (size_t__user * )(sig + *的长度))则返回:负EFAULT
784  返回:do_pselect(n, inp, outp, exp, tsp, up, sigsetsize, PT_TIMESPEC)