Primary
epoll ⚬|Definition|1st|20261013192254-00-⌔
epoll
epoll is a Linux kernel system call for a scalable I/O event notification mechanism, first introduced in version 2.5.45 of the Linux kernel in October, 2002.12 Its function is to monitor multiple file descriptors to see whether I/O is possible on any of them. It is meant to replace the older POSIX
select(2)andpoll(2)system calls, to achieve better performance in more demanding applications, where the number of watched file descriptors is large (unlike the older system calls, which operate in O (n) time,epolloperates in O (1) time).3
epollis similar to FreeBSD’skqueue, in that it consists of a set of user-space functions, each taking a file descriptor argument denoting the configurable kernel object, against which they cooperatively operate.epolluses a red–black tree (RB-tree) data structure to keep track of all file descriptors that are currently being monitored.4Printed 2026-10-13.
(echo:: @ ᯤ)
Link to original Footnotes
Corbet, Jonathan (October 30, 2002). “Kernel development”. LWN.net. Retrieved 2025-07-15. ↩
Torvalds, Linus (October 30, 2002). “Linux v2.5.45”. linux-kernel.vger.kernel.org archive mirror. Retrieved July 15, 2025. ↩
Oleksiy Kovyrin (2006-04-13). “Using epoll() For Asynchronous Network Programming”. Kovyrin.net. Retrieved 2014-03-01. ↩
“The Implementation of epoll (1)”. idndx.com. September 2014. ↩
epoll ⚬|docu|1st|20261013201240-00-◊
epoll(7) - Linux manual page
Link to original
(echo:: @ ᯤ)
Secondary
• • •