In addition to current relative timeouts for the waiting loop, where the timespec argument specifies the maximum time it can wait for, add support for the absolute mode, with the value carrying a CLOCK_MONOTONIC absolute time until which we should return control back to the user.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -507,6 +507,7 @@ struct io_cqring_offsets { · 506 unmodified lines | ||
| 507 | 507 | #define IORING_ENTER_SQ_WAIT (1U << 2) |
| 508 | 508 | #define IORING_ENTER_EXT_ARG (1U << 3) |
| 509 | 509 | #define IORING_ENTER_REGISTERED_RING (1U << 4) |
| 510 | +#define IORING_ENTER_ABS_TIMER (1U << 5) | |
| 510 | 511 | |
| 511 | 512 | /* |
| 512 | 513 | * Passed in for io_uring_setup(2). Copied back with updated info on success |