Multiple asynchronus read on file descriptors. More...
Multiple asynchronus read on file descriptors.
Definition in file async_read.h.
#include <stdlib.h>#include <poll.h>
Include dependency graph for async_read.h:Go to the source code of this file.
Data Structures | |
| struct | async_read_t |
| Interrupt callback information structure. More... | |
| #define | ASYNC_READ_NUMOF 2 |
| Maximum number of file descriptors. | |
| typedef void(* | native_async_read_callback_t) (int fd, void *arg) |
| asynchronus read callback type | |
| void | native_async_read_setup (void) |
| initialize asynchronus read system More... | |
| void | native_async_read_cleanup (void) |
| shutdown asynchronus read system More... | |
| void | native_async_read_continue (int fd) |
| resume monitoring of file descriptors More... | |
| void | native_async_read_add_handler (int fd, void *arg, native_async_read_callback_t handler) |
| start monitoring of file descriptor More... | |
| void | native_async_read_add_int_handler (int fd, void *arg, native_async_read_callback_t handler) |
| start monitoring of file descriptor as interrupt More... | |
| void native_async_read_add_handler | ( | int | fd, |
| void * | arg, | ||
| native_async_read_callback_t | handler | ||
| ) |
start monitoring of file descriptor
| [in] | fd | The file descriptor to monitor |
| [in] | arg | Pointer to be passed as arguments to the callback |
| [in] | handler | The callback function to be called when the file descriptor is ready to read. |
| void native_async_read_add_int_handler | ( | int | fd, |
| void * | arg, | ||
| native_async_read_callback_t | handler | ||
| ) |
start monitoring of file descriptor as interrupt
| [in] | fd | The file descriptor to monitor |
| [in] | arg | Pointer to be passed as arguments to the callback |
| [in] | handler | The callback function to be called when the file descriptor is ready to read. |
| void native_async_read_cleanup | ( | void | ) |
shutdown asynchronus read system
This deregisters SIGIO signal handler.
| void native_async_read_continue | ( | int | fd | ) |
resume monitoring of file descriptors
Call this function after reading file descriptors.
| [in] | fd | The file descriptor to monitor |
| void native_async_read_setup | ( | void | ) |
initialize asynchronus read system
This registers SIGIO signal handler.