From 8115820eb9343d4fa49f4933a2fd7d7006796cc3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 11 Apr 2019 09:01:16 -0600 Subject: test/nop: add NOP test case Signed-off-by: Jens Axboe --- src/liburing.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit