mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
linux-user: Support the epoll syscalls
Support the epoll family of syscalls: epoll_create(), epoll_create1(), epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1() and epoll_pwait() are later additions, so we have to test separately in configure for their presence. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
This commit is contained in:
parent
d2ee72a5b1
commit
3b6edd1611
3 changed files with 174 additions and 0 deletions
|
@ -2206,3 +2206,16 @@ struct target_mq_attr {
|
|||
#define FUTEX_CLOCK_REALTIME 256
|
||||
#define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
|
||||
|
||||
#ifdef CONFIG_EPOLL
|
||||
typedef union target_epoll_data {
|
||||
abi_ulong ptr;
|
||||
abi_ulong fd;
|
||||
uint32_t u32;
|
||||
uint64_t u64;
|
||||
} target_epoll_data_t;
|
||||
|
||||
struct target_epoll_event {
|
||||
uint32_t events;
|
||||
target_epoll_data_t data;
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue