EPOLLIN
EPOLLIN is a flag used with the Linux epoll I/O event notification facility. It indicates that a monitored file descriptor is currently ready for reading and that a read operation will not block. In practice, EPOLLIN is set for sockets, pipes, or other file descriptors when there is data available to be read, or when the other end has closed the connection (end-of-file).
EPOLLIN is specified in the events mask of an epoll_event structure used with epoll_ctl to add or
Edge-triggered vs level-triggered: In level-triggered mode (default), EPOLLIN remains set as long as there is data
EPOLLIN is Linux-specific and defined in include/linux/epoll.h or sys/epoll.h, part of the epoll API introduced in