epoll (7) - Linux manual page - man7.org
Learn how to use the epoll API to monitor multiple file descriptors for I/O events in Linux. Compare the edge-triggered and level-triggered modes, the epoll_wait(2) system call, and the /proc interfaces for epoll.