Expand description
I/O multiplexing (ppoll, epoll, eventfd) syscall wrappers.
Structs§
- Epoll
Event - AArch64 16-byte
struct epoll_eventlayout (events, 4-byte pad, 64-bitdata). - PollFd
- Kernel
struct pollfddescriptor entry.
Constants§
- EFD_
CLOEXEC - Set the close-on-exec (
FD_CLOEXEC) flag on the neweventfddescriptor. - EFD_
NONBLOCK - Set the
O_NONBLOCKfile 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
fdin 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
fdvalue 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(0orEPOLL_CLOEXEC). - epoll_
ctl - Controls the interest list of epoll descriptor
epfd. - epoll_
wait - Waits for I/O events on
epfdusingepoll_pwait2with an optional nanosecondtimeout. - eventfd
- Creates an
eventfdobject initialized toinitvalwithflags. - poll
- Waits for events on
fdsfor up totimeout_msmilliseconds (< 0waits indefinitely), implemented via the AArch64ppollsyscall.