Module rusl::select

source ·

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 most timeout_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 the PollFds if the syscall exits without error. We’re doing some translation here, a None timespec means forever. A none SigSetT means no manipulation. Equivalent usage to regular poll syscall using these arguments can be found in the below docs. See the Linux documentation here