test/nop: add NOP test case
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user