summaryrefslogtreecommitdiff
path: root/src/include/liburing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/liburing.h')
-rw-r--r--src/include/liburing.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/liburing.h b/src/include/liburing.h
index 9ff17db..6d7c423 100644
--- a/src/include/liburing.h
+++ b/src/include/liburing.h
@@ -257,9 +257,10 @@ static inline void io_uring_prep_nop(struct io_uring_sqe *sqe)
static inline void io_uring_prep_timeout(struct io_uring_sqe *sqe,
struct __kernel_timespec *ts,
- unsigned count)
+ unsigned count, unsigned flags)
{
io_uring_prep_rw(IORING_OP_TIMEOUT, sqe, 0, ts, 1, count);
+ sqe->timeout_flags = flags;
}
static inline unsigned io_uring_sq_space_left(struct io_uring *ring)