diff options
author | 2009-09-21 15:05:15 +0300 | |
---|---|---|
committer | 2009-09-21 15:05:15 +0300 | |
commit | 81866fb57742ea01708689dcdef5685214e9143c (patch) | |
tree | 625e6c3ea01afc9e8ee7c2dfb85cca41be0b0213 /compatfd.h | |
parent | Make compatfd.c depend on CONFIG_POSIX (diff) | |
download | qemu-kvm-81866fb57742ea01708689dcdef5685214e9143c.tar.gz qemu-kvm-81866fb57742ea01708689dcdef5685214e9143c.tar.bz2 qemu-kvm-81866fb57742ea01708689dcdef5685214e9143c.zip |
compatfd: complete definition
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'compatfd.h')
-rw-r--r-- | compatfd.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/compatfd.h b/compatfd.h index 55a111a57..06b0b6ba5 100644 --- a/compatfd.h +++ b/compatfd.h @@ -17,8 +17,25 @@ #include <signal.h> struct qemu_signalfd_siginfo { - uint32_t ssi_signo; - uint8_t pad[124]; + uint32_t ssi_signo; /* Signal number */ + int32_t ssi_errno; /* Error number (unused) */ + int32_t ssi_code; /* Signal code */ + uint32_t ssi_pid; /* PID of sender */ + uint32_t ssi_uid; /* Real UID of sender */ + int32_t ssi_fd; /* File descriptor (SIGIO) */ + uint32_t ssi_tid; /* Kernel timer ID (POSIX timers) */ + uint32_t ssi_band; /* Band event (SIGIO) */ + uint32_t ssi_overrun; /* POSIX timer overrun count */ + uint32_t ssi_trapno; /* Trap number that caused signal */ + int32_t ssi_status; /* Exit status or signal (SIGCHLD) */ + int32_t ssi_int; /* Integer sent by sigqueue(2) */ + uint64_t ssi_ptr; /* Pointer sent by sigqueue(2) */ + uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */ + uint64_t ssi_stime; /* System CPU time consumed (SIGCHLD) */ + uint64_t ssi_addr; /* Address that generated signal + (for hardware-generated signals) */ + uint8_t pad[48]; /* Pad size to 128 bytes (allow for + additional fields in the future) */ }; int qemu_signalfd(const sigset_t *mask); |