EPOLLIN |
The associated file is available for sys_read operations. |
EPOLLOUT |
The associated file is available for sys_write operations. |
EPOLLRDHUP |
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.) |
EPOLLPRI |
There is urgent data available for sys_read operations. |
EPOLLERR |
Error condition happened on the associated file descriptor. sys_epoll_wait will always wait for this event; it is not necessary to set it in epoll_event.events. |
EPOLLHUP |
Hang up happened on the associated file descriptor. sys_epoll_wait will always wait for this event; it is not necessary to set it in epoll_event.events. |
EPOLLET |
Sets the Edge Triggered behavior for the associated file descriptor. The default behavior for epoll is Level Triggered. |
EPOLLONESHOT |
(since kernel 2.6.2)
Sets the one-shot behavior for the associated file descriptor. This means that after an event is pulled out with sys_epoll_wait the associated file descriptor is internally disabled and no other events will be reported by the epoll interface. The user must call sys_epoll_ctl with EPOLL_CTL_MOD to re-enable the file descriptor with a new event mask. |