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 cd098ce..a544fa5 100644
--- a/src/liburing.h
+++ b/src/liburing.h
@@ -145,4 +145,10 @@ static inline void io_uring_prep_fsync(struct io_uring_sqe *sqe, int fd,
sqe->fsync_flags = fsync_flags;
}
+static inline void io_uring_prep_nop(struct io_uring_sqe *sqe)
+{
+ memset(sqe, 0, sizeof(*sqe));
+ sqe->opcode = IORING_OP_NOP;
+}
+
#endif