Skip to main content

Module poll

Module poll 

Source
Expand description

I/O multiplexing (ppoll, epoll, eventfd) syscall wrappers.

Structs§

EpollEvent
AArch64 16-byte struct epoll_event layout (events, 4-byte pad, 64-bit data).
PollFd
Kernel struct pollfd descriptor entry.

Constants§

EFD_CLOEXEC
Set the close-on-exec (FD_CLOEXEC) flag on the new eventfd descriptor.
EFD_NONBLOCK
Set the O_NONBLOCK file status flag on the open file description.
EFD_SEMAPHORE
Provide semaphore-like semantics for reads from the eventfd.
EPOLLERR
Error condition happened on the associated file descriptor.
EPOLLET
Sets Edge Triggered behavior for the associated file descriptor.
EPOLLHUP
Hang up happened on the associated file descriptor.
EPOLLIN
The associated file is available for read operations.
EPOLLONESHOT
Sets one-shot behavior for the associated file descriptor.
EPOLLOUT
The associated file is available for write operations.
EPOLLRDHUP
Stream socket peer closed connection, or shut down writing half of connection.
EPOLL_CLOEXEC
Set the close-on-exec (FD_CLOEXEC) flag on the new epoll file descriptor.
EPOLL_CTL_ADD
Add an entry to the interest list of the epoll file descriptor.
EPOLL_CTL_DEL
Remove (deregister) the target file descriptor from the epoll interest list.
EPOLL_CTL_MOD
Change the settings associated with fd in the interest list.
POLLERR
An error has occurred on the device or stream.
POLLHUP
The device has been disconnected.
POLLIN
Data other than high-priority data may be read without blocking.
POLLNVAL
The specified fd value is invalid.
POLLOUT
Normal data may be written without blocking.
POLLPRI
High-priority data may be read without blocking.
POLLRDHUP
Stream socket peer closed connection, or shut down writing half of connection.

Functions§

epoll_create1
Creates a new epoll instance with flags (0 or EPOLL_CLOEXEC).
epoll_ctl
Controls the interest list of epoll descriptor epfd.
epoll_wait
Waits for I/O events on epfd using epoll_pwait2 with an optional nanosecond timeout.
eventfd
Creates an eventfd object initialized to initval with flags.
poll
Waits for events on fds for up to timeout_ms milliseconds (< 0 waits indefinitely), implemented via the AArch64 ppoll syscall.