summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/liburing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/liburing.h b/src/liburing.h
index ccefc40..7973af9 100644
--- a/src/liburing.h
+++ b/src/liburing.h
@@ -106,6 +106,12 @@ static inline void *io_uring_cqe_get_data(struct io_uring_cqe *cqe)
return (void *) (uintptr_t) cqe->user_data;
}
+static inline void io_uring_sqe_set_flags(struct io_uring_sqe *sqe,
+ unsigned flags)
+{
+ sqe->flags = flags;
+}
+
static inline void io_uring_prep_rw(int op, struct io_uring_sqe *sqe, int fd,
const void *addr, unsigned len,
off_t offset)