Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
siginfo.h File Reference
#include <linux/compiler.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

union  sigval
 
struct  siginfo
 
struct  sigevent
 

Macros

#define __ARCH_SI_PREAMBLE_SIZE   (3 * sizeof(int))
 
#define SI_MAX_SIZE   128
 
#define SI_PAD_SIZE   ((SI_MAX_SIZE - __ARCH_SI_PREAMBLE_SIZE) / sizeof(int))
 
#define __ARCH_SI_UID_T   __kernel_uid32_t
 
#define __ARCH_SI_BAND_T   long
 
#define __ARCH_SI_CLOCK_T   __kernel_clock_t
 
#define __ARCH_SI_ATTRIBUTES
 
#define __ARCH_SIGSYS
 
#define si_pid   _sifields._kill._pid
 
#define si_uid   _sifields._kill._uid
 
#define si_tid   _sifields._timer._tid
 
#define si_overrun   _sifields._timer._overrun
 
#define si_sys_private   _sifields._timer._sys_private
 
#define si_status   _sifields._sigchld._status
 
#define si_utime   _sifields._sigchld._utime
 
#define si_stime   _sifields._sigchld._stime
 
#define si_value   _sifields._rt._sigval
 
#define si_int   _sifields._rt._sigval.sival_int
 
#define si_ptr   _sifields._rt._sigval.sival_ptr
 
#define si_addr   _sifields._sigfault._addr
 
#define si_addr_lsb   _sifields._sigfault._addr_lsb
 
#define si_band   _sifields._sigpoll._band
 
#define si_fd   _sifields._sigpoll._fd
 
#define si_call_addr   _sifields._sigsys._call_addr
 
#define si_syscall   _sifields._sigsys._syscall
 
#define si_arch   _sifields._sigsys._arch
 
#define __SI_KILL   0
 
#define __SI_TIMER   0
 
#define __SI_POLL   0
 
#define __SI_FAULT   0
 
#define __SI_CHLD   0
 
#define __SI_RT   0
 
#define __SI_MESGQ   0
 
#define __SI_SYS   0
 
#define __SI_CODE(T, N)   (N)
 
#define SI_USER   0 /* sent by kill, sigsend, raise */
 
#define SI_KERNEL   0x80 /* sent by the kernel from somewhere */
 
#define SI_QUEUE   -1 /* sent by sigqueue */
 
#define SI_TIMER   __SI_CODE(__SI_TIMER,-2) /* sent by timer expiration */
 
#define SI_MESGQ   __SI_CODE(__SI_MESGQ,-3) /* sent by real time mesq state change */
 
#define SI_ASYNCIO   -4 /* sent by AIO completion */
 
#define SI_SIGIO   -5 /* sent by queued SIGIO */
 
#define SI_TKILL   -6 /* sent by tkill system call */
 
#define SI_DETHREAD   -7 /* sent by execve() killing subsidiary threads */
 
#define SI_FROMUSER(siptr)   ((siptr)->si_code <= 0)
 
#define SI_FROMKERNEL(siptr)   ((siptr)->si_code > 0)
 
#define ILL_ILLOPC   (__SI_FAULT|1) /* illegal opcode */
 
#define ILL_ILLOPN   (__SI_FAULT|2) /* illegal operand */
 
#define ILL_ILLADR   (__SI_FAULT|3) /* illegal addressing mode */
 
#define ILL_ILLTRP   (__SI_FAULT|4) /* illegal trap */
 
#define ILL_PRVOPC   (__SI_FAULT|5) /* privileged opcode */
 
#define ILL_PRVREG   (__SI_FAULT|6) /* privileged register */
 
#define ILL_COPROC   (__SI_FAULT|7) /* coprocessor error */
 
#define ILL_BADSTK   (__SI_FAULT|8) /* internal stack error */
 
#define NSIGILL   8
 
#define FPE_INTDIV   (__SI_FAULT|1) /* integer divide by zero */
 
#define FPE_INTOVF   (__SI_FAULT|2) /* integer overflow */
 
#define FPE_FLTDIV   (__SI_FAULT|3) /* floating point divide by zero */
 
#define FPE_FLTOVF   (__SI_FAULT|4) /* floating point overflow */
 
#define FPE_FLTUND   (__SI_FAULT|5) /* floating point underflow */
 
#define FPE_FLTRES   (__SI_FAULT|6) /* floating point inexact result */
 
#define FPE_FLTINV   (__SI_FAULT|7) /* floating point invalid operation */
 
#define FPE_FLTSUB   (__SI_FAULT|8) /* subscript out of range */
 
#define NSIGFPE   8
 
#define SEGV_MAPERR   (__SI_FAULT|1) /* address not mapped to object */
 
#define SEGV_ACCERR   (__SI_FAULT|2) /* invalid permissions for mapped object */
 
#define NSIGSEGV   2
 
#define BUS_ADRALN   (__SI_FAULT|1) /* invalid address alignment */
 
#define BUS_ADRERR   (__SI_FAULT|2) /* non-existent physical address */
 
#define BUS_OBJERR   (__SI_FAULT|3) /* object specific hardware error */
 
#define BUS_MCEERR_AR   (__SI_FAULT|4)
 
#define BUS_MCEERR_AO   (__SI_FAULT|5)
 
#define NSIGBUS   5
 
#define TRAP_BRKPT   (__SI_FAULT|1) /* process breakpoint */
 
#define TRAP_TRACE   (__SI_FAULT|2) /* process trace trap */
 
#define TRAP_BRANCH   (__SI_FAULT|3) /* process taken branch trap */
 
#define TRAP_HWBKPT   (__SI_FAULT|4) /* hardware breakpoint/watchpoint */
 
#define NSIGTRAP   4
 
#define CLD_EXITED   (__SI_CHLD|1) /* child has exited */
 
#define CLD_KILLED   (__SI_CHLD|2) /* child was killed */
 
#define CLD_DUMPED   (__SI_CHLD|3) /* child terminated abnormally */
 
#define CLD_TRAPPED   (__SI_CHLD|4) /* traced child has trapped */
 
#define CLD_STOPPED   (__SI_CHLD|5) /* child has stopped */
 
#define CLD_CONTINUED   (__SI_CHLD|6) /* stopped child has continued */
 
#define NSIGCHLD   6
 
#define POLL_IN   (__SI_POLL|1) /* data input available */
 
#define POLL_OUT   (__SI_POLL|2) /* output buffers available */
 
#define POLL_MSG   (__SI_POLL|3) /* input message available */
 
#define POLL_ERR   (__SI_POLL|4) /* i/o error */
 
#define POLL_PRI   (__SI_POLL|5) /* high priority input available */
 
#define POLL_HUP   (__SI_POLL|6) /* device disconnected */
 
#define NSIGPOLL   6
 
#define SYS_SECCOMP   (__SI_SYS|1) /* seccomp triggered */
 
#define NSIGSYS   1
 
#define SIGEV_SIGNAL   0 /* notify via signal */
 
#define SIGEV_NONE   1 /* other notification: meaningless */
 
#define SIGEV_THREAD   2 /* deliver via thread creation */
 
#define SIGEV_THREAD_ID   4 /* deliver to thread */
 
#define __ARCH_SIGEV_PREAMBLE_SIZE   (sizeof(int) * 2 + sizeof(sigval_t))
 
#define SIGEV_MAX_SIZE   64
 
#define SIGEV_PAD_SIZE
 
#define sigev_notify_function   _sigev_un._sigev_thread._function
 
#define sigev_notify_attributes   _sigev_un._sigev_thread._attribute
 
#define sigev_notify_thread_id   _sigev_un._tid
 

Typedefs

typedef union sigval sigval_t
 
typedef struct siginfo siginfo_t
 
typedef struct sigevent sigevent_t
 

Macro Definition Documentation

#define __ARCH_SI_ATTRIBUTES

Definition at line 43 of file siginfo.h.

#define __ARCH_SI_BAND_T   long

Definition at line 35 of file siginfo.h.

#define __ARCH_SI_CLOCK_T   __kernel_clock_t

Definition at line 39 of file siginfo.h.

#define __ARCH_SI_PREAMBLE_SIZE   (3 * sizeof(int))

Definition at line 17 of file siginfo.h.

#define __ARCH_SI_UID_T   __kernel_uid32_t

Definition at line 26 of file siginfo.h.

#define __ARCH_SIGEV_PREAMBLE_SIZE   (sizeof(int) * 2 + sizeof(sigval_t))

Definition at line 271 of file siginfo.h.

#define __ARCH_SIGSYS

Definition at line 112 of file siginfo.h.

#define __SI_CHLD   0

Definition at line 147 of file siginfo.h.

#define __SI_CODE (   T,
  N 
)    (N)

Definition at line 151 of file siginfo.h.

#define __SI_FAULT   0

Definition at line 146 of file siginfo.h.

#define __SI_KILL   0

Definition at line 143 of file siginfo.h.

#define __SI_MESGQ   0

Definition at line 149 of file siginfo.h.

#define __SI_POLL   0

Definition at line 145 of file siginfo.h.

#define __SI_RT   0

Definition at line 148 of file siginfo.h.

#define __SI_SYS   0

Definition at line 150 of file siginfo.h.

#define __SI_TIMER   0

Definition at line 144 of file siginfo.h.

#define BUS_ADRALN   (__SI_FAULT|1) /* invalid address alignment */

Definition at line 207 of file siginfo.h.

#define BUS_ADRERR   (__SI_FAULT|2) /* non-existent physical address */

Definition at line 208 of file siginfo.h.

#define BUS_MCEERR_AO   (__SI_FAULT|5)

Definition at line 213 of file siginfo.h.

#define BUS_MCEERR_AR   (__SI_FAULT|4)

Definition at line 211 of file siginfo.h.

#define BUS_OBJERR   (__SI_FAULT|3) /* object specific hardware error */

Definition at line 209 of file siginfo.h.

#define CLD_CONTINUED   (__SI_CHLD|6) /* stopped child has continued */

Definition at line 233 of file siginfo.h.

#define CLD_DUMPED   (__SI_CHLD|3) /* child terminated abnormally */

Definition at line 230 of file siginfo.h.

#define CLD_EXITED   (__SI_CHLD|1) /* child has exited */

Definition at line 228 of file siginfo.h.

#define CLD_KILLED   (__SI_CHLD|2) /* child was killed */

Definition at line 229 of file siginfo.h.

#define CLD_STOPPED   (__SI_CHLD|5) /* child has stopped */

Definition at line 232 of file siginfo.h.

#define CLD_TRAPPED   (__SI_CHLD|4) /* traced child has trapped */

Definition at line 231 of file siginfo.h.

#define FPE_FLTDIV   (__SI_FAULT|3) /* floating point divide by zero */

Definition at line 189 of file siginfo.h.

#define FPE_FLTINV   (__SI_FAULT|7) /* floating point invalid operation */

Definition at line 193 of file siginfo.h.

#define FPE_FLTOVF   (__SI_FAULT|4) /* floating point overflow */

Definition at line 190 of file siginfo.h.

#define FPE_FLTRES   (__SI_FAULT|6) /* floating point inexact result */

Definition at line 192 of file siginfo.h.

#define FPE_FLTSUB   (__SI_FAULT|8) /* subscript out of range */

Definition at line 194 of file siginfo.h.

#define FPE_FLTUND   (__SI_FAULT|5) /* floating point underflow */

Definition at line 191 of file siginfo.h.

#define FPE_INTDIV   (__SI_FAULT|1) /* integer divide by zero */

Definition at line 187 of file siginfo.h.

#define FPE_INTOVF   (__SI_FAULT|2) /* integer overflow */

Definition at line 188 of file siginfo.h.

#define ILL_BADSTK   (__SI_FAULT|8) /* internal stack error */

Definition at line 181 of file siginfo.h.

#define ILL_COPROC   (__SI_FAULT|7) /* coprocessor error */

Definition at line 180 of file siginfo.h.

#define ILL_ILLADR   (__SI_FAULT|3) /* illegal addressing mode */

Definition at line 176 of file siginfo.h.

#define ILL_ILLOPC   (__SI_FAULT|1) /* illegal opcode */

Definition at line 174 of file siginfo.h.

#define ILL_ILLOPN   (__SI_FAULT|2) /* illegal operand */

Definition at line 175 of file siginfo.h.

#define ILL_ILLTRP   (__SI_FAULT|4) /* illegal trap */

Definition at line 177 of file siginfo.h.

#define ILL_PRVOPC   (__SI_FAULT|5) /* privileged opcode */

Definition at line 178 of file siginfo.h.

#define ILL_PRVREG   (__SI_FAULT|6) /* privileged register */

Definition at line 179 of file siginfo.h.

#define NSIGBUS   5

Definition at line 214 of file siginfo.h.

#define NSIGCHLD   6

Definition at line 234 of file siginfo.h.

#define NSIGFPE   8

Definition at line 195 of file siginfo.h.

#define NSIGILL   8

Definition at line 182 of file siginfo.h.

#define NSIGPOLL   6

Definition at line 245 of file siginfo.h.

#define NSIGSEGV   2

Definition at line 202 of file siginfo.h.

#define NSIGSYS   1

Definition at line 251 of file siginfo.h.

#define NSIGTRAP   4

Definition at line 223 of file siginfo.h.

#define POLL_ERR   (__SI_POLL|4) /* i/o error */

Definition at line 242 of file siginfo.h.

#define POLL_HUP   (__SI_POLL|6) /* device disconnected */

Definition at line 244 of file siginfo.h.

#define POLL_IN   (__SI_POLL|1) /* data input available */

Definition at line 239 of file siginfo.h.

#define POLL_MSG   (__SI_POLL|3) /* input message available */

Definition at line 241 of file siginfo.h.

#define POLL_OUT   (__SI_POLL|2) /* output buffers available */

Definition at line 240 of file siginfo.h.

#define POLL_PRI   (__SI_POLL|5) /* high priority input available */

Definition at line 243 of file siginfo.h.

#define SEGV_ACCERR   (__SI_FAULT|2) /* invalid permissions for mapped object */

Definition at line 201 of file siginfo.h.

#define SEGV_MAPERR   (__SI_FAULT|1) /* address not mapped to object */

Definition at line 200 of file siginfo.h.

#define si_addr   _sifields._sigfault._addr

Definition at line 129 of file siginfo.h.

#define si_addr_lsb   _sifields._sigfault._addr_lsb

Definition at line 133 of file siginfo.h.

#define si_arch   _sifields._sigsys._arch

Definition at line 139 of file siginfo.h.

#define SI_ASYNCIO   -4 /* sent by AIO completion */

Definition at line 163 of file siginfo.h.

#define si_band   _sifields._sigpoll._band

Definition at line 134 of file siginfo.h.

#define si_call_addr   _sifields._sigsys._call_addr

Definition at line 137 of file siginfo.h.

#define SI_DETHREAD   -7 /* sent by execve() killing subsidiary threads */

Definition at line 166 of file siginfo.h.

#define si_fd   _sifields._sigpoll._fd

Definition at line 135 of file siginfo.h.

#define SI_FROMKERNEL (   siptr)    ((siptr)->si_code > 0)

Definition at line 169 of file siginfo.h.

#define SI_FROMUSER (   siptr)    ((siptr)->si_code <= 0)

Definition at line 168 of file siginfo.h.

#define si_int   _sifields._rt._sigval.sival_int

Definition at line 127 of file siginfo.h.

#define SI_KERNEL   0x80 /* sent by the kernel from somewhere */

Definition at line 159 of file siginfo.h.

#define SI_MAX_SIZE   128

Definition at line 20 of file siginfo.h.

#define SI_MESGQ   __SI_CODE(__SI_MESGQ,-3) /* sent by real time mesq state change */

Definition at line 162 of file siginfo.h.

#define si_overrun   _sifields._timer._overrun

Definition at line 121 of file siginfo.h.

#define SI_PAD_SIZE   ((SI_MAX_SIZE - __ARCH_SI_PREAMBLE_SIZE) / sizeof(int))

Definition at line 22 of file siginfo.h.

#define si_pid   _sifields._kill._pid

Definition at line 118 of file siginfo.h.

#define si_ptr   _sifields._rt._sigval.sival_ptr

Definition at line 128 of file siginfo.h.

#define SI_QUEUE   -1 /* sent by sigqueue */

Definition at line 160 of file siginfo.h.

#define SI_SIGIO   -5 /* sent by queued SIGIO */

Definition at line 164 of file siginfo.h.

#define si_status   _sifields._sigchld._status

Definition at line 123 of file siginfo.h.

#define si_stime   _sifields._sigchld._stime

Definition at line 125 of file siginfo.h.

#define si_sys_private   _sifields._timer._sys_private

Definition at line 122 of file siginfo.h.

#define si_syscall   _sifields._sigsys._syscall

Definition at line 138 of file siginfo.h.

#define si_tid   _sifields._timer._tid

Definition at line 120 of file siginfo.h.

#define SI_TIMER   __SI_CODE(__SI_TIMER,-2) /* sent by timer expiration */

Definition at line 161 of file siginfo.h.

#define SI_TKILL   -6 /* sent by tkill system call */

Definition at line 165 of file siginfo.h.

#define si_uid   _sifields._kill._uid

Definition at line 119 of file siginfo.h.

#define SI_USER   0 /* sent by kill, sigsend, raise */

Definition at line 158 of file siginfo.h.

#define si_utime   _sifields._sigchld._utime

Definition at line 124 of file siginfo.h.

#define si_value   _sifields._rt._sigval

Definition at line 126 of file siginfo.h.

#define SIGEV_MAX_SIZE   64

Definition at line 274 of file siginfo.h.

#define SIGEV_NONE   1 /* other notification: meaningless */

Definition at line 262 of file siginfo.h.

#define sigev_notify_attributes   _sigev_un._sigev_thread._attribute

Definition at line 294 of file siginfo.h.

#define sigev_notify_function   _sigev_un._sigev_thread._function

Definition at line 293 of file siginfo.h.

#define sigev_notify_thread_id   _sigev_un._tid

Definition at line 295 of file siginfo.h.

#define SIGEV_PAD_SIZE
Value:

Definition at line 275 of file siginfo.h.

#define SIGEV_SIGNAL   0 /* notify via signal */

Definition at line 261 of file siginfo.h.

#define SIGEV_THREAD   2 /* deliver via thread creation */

Definition at line 263 of file siginfo.h.

#define SIGEV_THREAD_ID   4 /* deliver to thread */

Definition at line 264 of file siginfo.h.

#define SYS_SECCOMP   (__SI_SYS|1) /* seccomp triggered */

Definition at line 250 of file siginfo.h.

#define TRAP_BRANCH   (__SI_FAULT|3) /* process taken branch trap */

Definition at line 221 of file siginfo.h.

#define TRAP_BRKPT   (__SI_FAULT|1) /* process breakpoint */

Definition at line 219 of file siginfo.h.

#define TRAP_HWBKPT   (__SI_FAULT|4) /* hardware breakpoint/watchpoint */

Definition at line 222 of file siginfo.h.

#define TRAP_TRACE   (__SI_FAULT|2) /* process trace trap */

Definition at line 220 of file siginfo.h.

Typedef Documentation

typedef union sigval sigval_t