summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-13 08:56:11 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-13 09:01:25 -0700
commitf3e769a43d02dd468a1662efc504940d8dc21eb6 (patch)
tree493d1127c1f6987178bd98ca43642528948ec9ce /os
parent8025517dfa599be4bc795e4af7c9012d10b81bc5 (diff)
downloadfio-f3e769a43d02dd468a1662efc504940d8dc21eb6.tar.gz
fio-f3e769a43d02dd468a1662efc504940d8dc21eb6.tar.bz2
Move io_uring to os/linux/
It's not a generic OS header, reflect the fact that it's Linux only by moving it to a linux/ directory. Also update io_uring_sqe to match current API. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'os')
-rw-r--r--os/linux/io_uring.h (renamed from os/io_uring.h)7
1 files changed, 4 insertions, 3 deletions
diff --git a/os/io_uring.h b/os/linux/io_uring.h
index 0f4460d6..3693d125 100644
--- a/os/io_uring.h
+++ b/os/linux/io_uring.h
@@ -29,10 +29,11 @@ struct io_uring_sqe {
__kernel_rwf_t rw_flags;
__u32 fsync_flags;
};
- __u16 buf_index; /* index into fixed buffers, if used */
- __u16 __pad2;
- __u32 __pad3;
__u64 user_data; /* data to be passed back at completion time */
+ union {
+ __u16 buf_index; /* index into fixed buffers, if used */
+ __u64 __pad2[3];
+ };
};
/*