Value | Meaning |
---|---|
None0 | |
EPOLLIN0x001 | The associated file is available for read(2) operations. |
EPOLLPRI0x002 | There is urgent data available for read(2) operations. |
EPOLLOUT0x004 | The associated file is available for write(2) operations. |
EPOLLRDNORM0x040 | |
EPOLLRDBAND0x080 | |
EPOLLWRNORM0x100 | |
EPOLLWRBAND0x200 | |
EPOLLMSG0x400 | |
EPOLLERR0x008 | Error condition happened on the associated file descriptor. epoll_wait(2) will always wait for this event; it is not necessary to set it in events. |
EPOLLHUP0x010 | Hang up happened on the associated file descriptor. epoll_wait(2) will always wait for this event; it is not necessary to set it in events. |
EPOLLRDHUP0x2000 | (since Linux 2.6.17) Stream socket peer closed connection, or shut down writing half of connection. (This flag is especially useful for writing simple code to detect peer shutdown when using Edge Triggered monitoring.) |
EPOLLONESHOT1u << 30 | (since Linux 2.6.2) Sets the one-shot behavior for the associated file descriptor. This means that after an event is pulled out with epoll_wait(2) the associated file descriptor is internally disabled and no other events will be reported by the epoll interface. The user must call epoll_ctl() with EPOLL_CTL_MOD to rearm the file descriptor with a new event mask. |
EPOLLET1u << 31 | Sets the Edge Triggered behavior for the associated file descriptor. The default behavior for epoll is Level Triggered. See epoll(7) for more detailed information about Edge and Level Triggered event distribution architectures. |
Events supported by epoll, can be OR-combined.