nbd: Update for libnbd 0.9.8
[fio.git] / os / linux / io_uring.h
index 24906e99fdc7b3ad27192485afca51328b5101d7..ce03151e2002bc67114fe8214180c9074cc917a9 100644 (file)
@@ -26,6 +26,7 @@ struct io_uring_sqe {
                __kernel_rwf_t  rw_flags;
                __u32           fsync_flags;
                __u16           poll_events;
+               __u32           sync_range_flags;
        };
        __u64   user_data;      /* data to be passed back at completion time */
        union {
@@ -38,6 +39,8 @@ struct io_uring_sqe {
  * sqe->flags
  */
 #define IOSQE_FIXED_FILE       (1U << 0)       /* use fixed fileset */
+#define IOSQE_IO_DRAIN         (1U << 1)       /* issue after inflight IO */
+#define IOSQE_IO_LINK          (1U << 2)       /* next IO depends on this one */
 
 /*
  * io_uring_setup() flags
@@ -54,6 +57,7 @@ struct io_uring_sqe {
 #define IORING_OP_WRITE_FIXED  5
 #define IORING_OP_POLL_ADD     6
 #define IORING_OP_POLL_REMOVE  7
+#define IORING_OP_SYNC_FILE_RANGE      8
 
 /*
  * sqe->fsync_flags
@@ -69,11 +73,6 @@ struct io_uring_cqe {
        __u32   flags;
 };
 
-/*
- * io_uring_event->flags
- */
-#define IOCQE_FLAG_CACHEHIT    (1U << 0)       /* IO did not hit media */
-
 /*
  * Magic offsets for the application to mmap the data it needs
  */
@@ -138,5 +137,7 @@ struct io_uring_params {
 #define IORING_UNREGISTER_BUFFERS      1
 #define IORING_REGISTER_FILES          2
 #define IORING_UNREGISTER_FILES                3
+#define IORING_REGISTER_EVENTFD                4
+#define IORING_UNREGISTER_EVENTFD      5
 
 #endif