diff options
author | Hao Xu <howeyxu@tencent.com> | 2022-05-14 22:20:43 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-14 08:34:22 -0600 |
commit | 390ed29b5e425ba00da2b6113b74a14949f71b02 (patch) | |
tree | ae120c5ec62a351c155bcfb70cc188929c26975a /include | |
parent | 1b1d7b4bf1d9948c8dba5ee550459ce7c65ac019 (diff) | |
download | linux-390ed29b5e425ba00da2b6113b74a14949f71b02.tar.bz2 |
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 <howeyxu@tencent.com>
Link: https://lore.kernel.org/r/20220514142046.58072-2-haoxu.linux@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-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 { |