How does a socket event get propagated/converted to epoll?
问题 I am curious how epoll_wait() receives the event that a registered socket (with epoll_ctl()) is ready for read/write. I believe that glibc magically handles it. Then, is there a document describing how the following events can be triggered for a socket? EPOLLPRI EPOLLRDNORM EPOLLRDBAND EPOLLWRNORM EPOLLWRBAND EPOLLMSG EPOLLERR EPOLLHUP EPOLLRDHUP P.S. Originally I was trying to paste the enum EPOLL_EVENTS in sys/epoll.h on my box here; stackoverflow thinks that I don't format the code block