Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:17:20
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:post_copy_siginfo_from_user32

Proto:static int post_copy_siginfo_from_user32(kernel_siginfo_t *to, const struct compat_siginfo *from)

Type:int

Parameter:

TypeParameterName
kernel_siginfo_t *to
const struct compat_siginfo *from
3327  clear_siginfo(to)
3328  si_signo = si_signo
3329  si_errno = si_errno
3330  si_code = si_code
3332  Case siginfo_layout(si_signo, si_code) == SIL_KILL
3333  si_pid = si_pid
3334  si_uid = si_uid
3335  Break
3336  Case siginfo_layout(si_signo, si_code) == SIL_TIMER
3337  si_tid = si_tid
3338  si_overrun = si_overrun
3339  si_int = si_int
3340  Break
3341  Case siginfo_layout(si_signo, si_code) == SIL_POLL
3342  si_band = si_band
3343  si_fd = si_fd
3344  Break
3345  Case siginfo_layout(si_signo, si_code) == SIL_FAULT
3346  si_addr = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3350  Break
3351  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_MCEERR
3352  si_addr = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3356  si_addr_lsb = si_addr_lsb
3357  Break
3358  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_BNDERR
3359  si_addr = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3363  si_lower = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3364  si_upper = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3365  Break
3366  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_PKUERR
3367  si_addr = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3371  si_pkey = si_pkey
3372  Break
3373  Case siginfo_layout(si_signo, si_code) == SIL_CHLD
3374  si_pid = si_pid
3375  si_uid = si_uid
3376  si_status = si_status
3384  si_utime = si_utime
3385  si_stime = si_stime
3387  Break
3388  Case siginfo_layout(si_signo, si_code) == SIL_RT
3389  si_pid = si_pid
3390  si_uid = si_uid
3391  si_int = si_int
3392  Break
3393  Case siginfo_layout(si_signo, si_code) == SIL_SYS
3394  si_call_addr = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
3395  si_syscall = si_syscall
3396  si_arch = si_arch
3397  Break
3399  Return 0
Caller
NameDescribe
__copy_siginfo_from_user32
copy_siginfo_from_user32