Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto: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)

Type:

Parameter:Nothing

773  sigsetsize = 0
774  sigset_t __user * up = NULL
776  If sig Then
777  If Not 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, size of * + sizeof(size_t)) || Get a simple variable from user space, with less checking(up, (sigset_t__user * __user * )sig) || Get a simple variable from user space, with less checking(sigsetsize, (size_t__user * )(sig + size of * )) Then Return -EFAULT
784  Return do_pselect(n, inp, outp, exp, tsp, up, sigsetsize, PT_TIMESPEC)