From b93edf5b9eb6f392d40585e26df1663fccc0c09d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 16 Jan 2019 08:41:05 -0700 Subject: Sync with upstream API Signed-off-by: Jens Axboe --- src/io_uring.h | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'src/io_uring.h') diff --git a/src/io_uring.h b/src/io_uring.h index 71e9202..9bb7181 100644 --- a/src/io_uring.h +++ b/src/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 -- cgit