Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\signalfd.c Create Date:2022-07-28 20:19:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Copied from copy_siginfo_to_user() in kernel/signal.c

Proto:static int signalfd_copyinfo(struct signalfd_siginfo __user *uinfo, kernel_siginfo_t const *kinfo)

Type:int

Parameter:

TypeParameterName
struct signalfd_siginfo __user *uinfo
kernel_siginfo_t const *kinfo
86  BUILD_BUG_ON - break compile if a condition is true(sizeof(structsignalfd_siginfo) != 128)
91  memset( & new, 0, size of new )
97  ssi_signo = si_signo
98  ssi_errno = si_errno
99  ssi_code = si_code
101  Case siginfo_layout(si_signo, si_code) == SIL_KILL
102  ssi_pid = si_pid
103  ssi_uid = si_uid
104  Break
105  Case siginfo_layout(si_signo, si_code) == SIL_TIMER
106  ssi_tid = si_tid
107  ssi_overrun = si_overrun
108  ssi_ptr = si_ptr
109  ssi_int = si_int
110  Break
111  Case siginfo_layout(si_signo, si_code) == SIL_POLL
112  ssi_band = si_band
113  ssi_fd = si_fd
114  Break
115  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_BNDERR
116  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_PKUERR
124  Case siginfo_layout(si_signo, si_code) == SIL_FAULT
125  ssi_addr = si_addr
129  Break
130  Case siginfo_layout(si_signo, si_code) == SIL_FAULT_MCEERR
131  ssi_addr = si_addr
135  ssi_addr_lsb = si_addr_lsb
136  Break
137  Case siginfo_layout(si_signo, si_code) == SIL_CHLD
138  ssi_pid = si_pid
139  ssi_uid = si_uid
140  ssi_status = si_status
141  ssi_utime = si_utime
142  ssi_stime = si_stime
143  Break
144  Case siginfo_layout(si_signo, si_code) == SIL_RT
148  ssi_pid = si_pid
149  ssi_uid = si_uid
150  ssi_ptr = si_ptr
151  ssi_int = si_int
152  Break
153  Case siginfo_layout(si_signo, si_code) == SIL_SYS
154  ssi_call_addr = si_call_addr
155  ssi_syscall = si_syscall
156  ssi_arch = si_arch
157  Break
160  If copy_to_user(uinfo, & new, sizeof(structsignalfd_siginfo)) Then Return -EFAULT
163  Return size of uinfo
Caller
NameDescribe
signalfd_readReturns a multiple of the size of a "struct signalfd_siginfo", or a negative* error code. The "count" parameter must be at least the size of a* "struct signalfd_siginfo".