diff options
author | Roman Penyaev <rpenyaev@suse.de> | 2019-05-27 21:05:11 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-27 14:54:17 -0600 |
commit | e60729e64189c908c61254e9743daee7db47f88f (patch) | |
tree | ad616a072ed45b72e563b5e406c97828570bf728 | |
parent | f6a03bde232e4d0c53c6f3ce3422af37bf34cce7 (diff) |
liburing: introduce io_uring_cqe_set_flags() helper
Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/liburing.h | 6 |
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) |