Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_siginfo_to_user32

Proto:int copy_siginfo_to_user32(struct compat_siginfo __user *to, const struct kernel_siginfo *from)

Type:int

Parameter:

TypeParameterName
struct compat_siginfo __user *to
const struct kernel_siginfo *from
3244  memset( & new, 0, size of new )
3246  si_signo = si_signo
3247  si_errno = si_errno
3248  si_code = si_code
3250  Case siginfo_layout(si_signo, si_code) == SIL_KILL
3251  si_pid = si_pid
3252  si_uid = si_uid
3253  Break
3254  Case siginfo_layout(si_signo, si_code) == SIL_TIMER
3255  si_tid = si_tid
3256  si_overrun = si_overrun
3257  si_int = si_int
3258  Break
3259  Case siginfo_layout(si_signo, si_code) == SIL_POLL
3260  si_band = si_band
3261  si_fd = si_fd
3262  Break
3263  Case siginfo_layout(si_signo, si_code) == SIL_FAULT
3264  si_addr = ptr_to_compat(si_addr)
3268  Break
3269  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_MCEERR
3270  si_addr = ptr_to_compat(si_addr)
3274  si_addr_lsb = si_addr_lsb
3275  Break
3276  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_BNDERR
3277  si_addr = ptr_to_compat(si_addr)
3281  si_lower = ptr_to_compat(si_lower)
3282  si_upper = ptr_to_compat(si_upper)
3283  Break
3284  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_PKUERR
3285  si_addr = ptr_to_compat(si_addr)
3289  si_pkey = si_pkey
3290  Break
3291  Case siginfo_layout(si_signo, si_code) == SIL_CHLD
3292  si_pid = si_pid
3293  si_uid = si_uid
3294  si_status = si_status
3302  si_utime = si_utime
3303  si_stime = si_stime
3305  Break
3306  Case siginfo_layout(si_signo, si_code) == SIL_RT
3307  si_pid = si_pid
3308  si_uid = si_uid
3309  si_int = si_int
3310  Break
3311  Case siginfo_layout(si_signo, si_code) == SIL_SYS
3312  si_call_addr = ptr_to_compat(si_call_addr)
3313  si_syscall = si_syscall
3314  si_arch = si_arch
3315  Break
3318  If copy_to_user(to, & new, sizeof(structcompat_siginfo)) Then Return -EFAULT
3321  Return 0
Caller
NameDescribe
compat_ptrace_request