epoll

TOC  Previous  Next

The epoll API

epoll events

These are the event bits that can be associated with a file descriptor:


Bit Input to
epoll_ctl()
?
Returned by
epoll_wait()
?
Description
EPOLLIN YesYes Data other than high-priority data can be read
EPOLLPRI YesYes High-priority data can be read
EPOLLOUT YesYes Normal data can be written
EPOLLET Yesn Employ edge-triggered event notification
EPOLLONESHOT Yesn Disable monitoring after one event notification
EPOLLERR nYes An error has occurred
EPOLLHUP nYes A hangup has occurred

Many of these bits are analogous to bits used with poll().


(C) 2006, Michael Kerrisk