summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-16 08:45:43 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-16 09:00:00 -0700
commit919850d217e139b4f82f9798893cc816a7435e44 (patch)
tree6c6f6f5b8fe4fc0c27d75a1d05434e3debe9f853 /os
parent2b9415ddc260726c3ea9ae3436826f9181811143 (diff)
downloadfio-919850d217e139b4f82f9798893cc816a7435e44.tar.gz
fio-919850d217e139b4f82f9798893cc816a7435e44.tar.bz2
io_uring: sync with upstream API
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os')
-rw-r--r--os/linux/io_uring.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/os/linux/io_uring.h b/os/linux/io_uring.h
index 71e92026..9bb71816 100644
--- a/os/linux/io_uring.h
+++ b/os/linux/io_uring.h
@@ -20,10 +20,7 @@ struct io_uring_sqe {
__u16 ioprio; /* ioprio for the request */
__s32 fd; /* file descriptor to do IO on */
__u64 off; /* offset into file */
- union {
- void *addr; /* buffer or iovecs */
- __u64 __pad;
- };
+ __u64 addr; /* pointer to buffer or iovecs */
__u32 len; /* buffer size or number of iovecs */
union {
__kernel_rwf_t rw_flags;
@@ -136,20 +133,4 @@ struct io_uring_params {
#define IORING_REGISTER_FILES 2
#define IORING_UNREGISTER_FILES 3
-struct io_uring_register_buffers {
- union {
- struct iovec *iovecs;
- __u64 pad;
- };
- __u32 nr_iovecs;
-};
-
-struct io_uring_register_files {
- union {
- __s32 *fds;
- __u64 pad;
- };
- __u32 nr_fds;
-};
-
#endif