![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX poll API (<poll.h>) More...
#include <zephyr/sys/fdtable.h>#include <zephyr/toolchain.h>
Go to the source code of this file.
Macros | |
| #define | _NFDS_T_DECLARED |
| #define | __nfds_t_defined |
| #define | pollfd zvfs_pollfd |
| Poll file descriptor structure (alias for zvfs_pollfd). | |
| #define | POLLIN ZVFS_POLLIN |
| Data other than high-priority data may be read without blocking. | |
| #define | POLLRDNORM ZVFS_POLLRDNORM |
| Normal data may be read without blocking. | |
| #define | POLLRDBAND ZVFS_POLLRDBAND |
| Priority data may be read without blocking. | |
| #define | POLLPRI ZVFS_POLLPRI |
| High-priority data may be read without blocking. | |
| #define | POLLOUT ZVFS_POLLOUT |
| Normal data may be written without blocking. | |
| #define | POLLWRNORM ZVFS_POLLWRNORM |
| Equivalent to POLLOUT. | |
| #define | POLLWRBAND ZVFS_POLLWRBAND |
| Priority data may be written. | |
| #define | POLLERR ZVFS_POLLERR |
| An error has occurred on the file descriptor (output only). | |
| #define | POLLHUP ZVFS_POLLHUP |
| The file descriptor has been hung up (output only). | |
| #define | POLLNVAL ZVFS_POLLNVAL |
| The file descriptor is not open (output only). | |
Typedefs | |
| typedef int | nfds_t |
| Type for the number of file descriptors passed to poll(). | |
Functions | |
| BUILD_ASSERT (ZVFS_POLLWRNORM==ZVFS_POLLOUT, "POLLWRNORM must be equal to POLLOUT") | |
| int | poll (struct zvfs_pollfd *fds, nfds_t nfds, int timeout) |
| Wait for events on a set of file descriptors. | |
POSIX poll API (<poll.h>)
Provides the poll() function and associated poll event flags for multiplexed I/O on multiple file descriptors.
Definition in file poll.h.