diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2020-05-15 19:38:04 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-15 21:16:59 +0300 |
commit | 0d9b5b3af134cddfdc1dd31d41946a0ad389bbf2 (patch) | |
tree | 952ae2ef5e1f2a4dd9c63aeb52483dbc54ee37c5 /include/uapi/linux/io_uring.h | |
parent | 18bceab101adde8f38de76016bc77f3f25cf22f4 (diff) | |
download | linux-0d9b5b3af134cddfdc1dd31d41946a0ad389bbf2.tar.xz |
io_uring: add 'cq_flags' field for the CQ ring
This patch adds the new 'cq_flags' field that should be written by
the application and read by the kernel.
This new field is available to the userspace application through
'cq_off.flags'.
We are using 4-bytes previously reserved and set to zero. This means
that if the application finds this field to zero, then the new
functionality is not supported.
In the next patch we will introduce the first flag available.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r-- | include/uapi/linux/io_uring.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index e48d746b8e2a..602bb0ece607 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -204,7 +204,9 @@ struct io_cqring_offsets { __u32 ring_entries; __u32 overflow; __u32 cqes; - __u64 resv[2]; + __u32 flags; + __u32 resv1; + __u64 resv2; }; /* |