Commit 390ed29b authored by Hao Xu's avatar Hao Xu Committed by Jens Axboe
Browse files

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: default avatarHao Xu <howeyxu@tencent.com>
Link: https://lore.kernel.org/r/20220514142046.58072-2-haoxu.linux@gmail.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1b1d7b4b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -232,6 +232,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)
 */