Functions§
- Create an epoll fd See linux documentation for details
- Add, remove, or modify the interest list of the specified
epoll_fd
. See [Linux documentation for details(https://man7.org/linux/man-pages/man2/epoll_ctl.2.html) - Remove an fd from the epoll interest list. Some duplication with above, the
event
argument isn’t needed for delete since kernel 2.6.9, if targeting a kernel earlier than that, use the above function See [Linux documentation for details(https://man7.org/linux/man-pages/man2/epoll_ctl.2.html) - Wait for an
epoll_fd
to have ready events for as mosttimeout_millis
.timeout_millis = -1
means wait until an event fires.timeout_millis = 0
means return immediately, even if no events are ready. See the Linux documentation for details - Polls the provided fds for the requested
PollEvents
, the result is provided on thePollFd
s if the syscall exits without error. We’re doing some translation here, a Nonetimespec
means forever. A noneSigSetT
means no manipulation. Equivalent usage to regularpoll
syscall using these arguments can be found in the below docs. See the Linux documentation here