diff options
author | Hao Xu <[email protected]> | 2022-05-14 22:20:43 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-05-14 08:34:22 -0600 |
commit | 390ed29b5e425ba00da2b6113b74a14949f71b02 (patch) | |
tree | ae120c5ec62a351c155bcfb70cc188929c26975a | |
parent | 1b1d7b4bf1d9948c8dba5ee550459ce7c65ac019 (diff) |
io_uring: add IORING_ACCEPT_MULTISHOT for accept
add an accept_flag IORING_ACCEPT_MULTISHOT for accept, which is to
support multishot.
Signed-off-by: Hao Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | include/uapi/linux/io_uring.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 36ec43dc7bf9..15f821af9242 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -233,6 +233,11 @@ enum { #define IORING_RECVSEND_POLL_FIRST (1U << 0) /* + * accept flags stored in sqe->ioprio + */ +#define IORING_ACCEPT_MULTISHOT (1U << 0) + +/* * IO completion data structure (Completion Queue Entry) */ struct io_uring_cqe { |