|
Monado OpenXR Runtime
|
Reading from file descriptors, shared by the Linux hid and serial code. More...
#include "xrt/xrt_config_os.h"#include "os/os_time.h"#include <stdint.h>#include <errno.h>#include <poll.h>#include <unistd.h>
Go to the source code of this file.
Functions | |
| static ssize_t | os_fd_read (int fd, uint8_t *data, size_t size, int milliseconds) |
Waits up to milliseconds for fd to be readable, then reads from it. | |
Reading from file descriptors, shared by the Linux hid and serial code.
|
inlinestatic |
Waits up to milliseconds for fd to be readable, then reads from it.
A negative milliseconds reads without waiting. Retries on EINTR.
References os_monotonic_get_ns(), and U_TIME_1MS_IN_NS.