diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-27 02:39:50 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-30 06:12:12 +0300 |
commit | f548a12efd5ab97e6b1fb332e5634ce44b3d9328 (patch) | |
tree | 4226e1b9e59bce38d4a55e28dae49156831811b5 /include | |
parent | a4c76853609107f0e5e7b51571d966785fe89cb3 (diff) | |
download | linux-f548a12efd5ab97e6b1fb332e5634ce44b3d9328.tar.xz |
io_uring: return hint on whether more data is available after receive
For now just use a CQE flag for this, with big CQE support we could
return the actual number of bytes left.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/io_uring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 49d1f3994f8d..92d1799892b2 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -220,9 +220,11 @@ struct io_uring_cqe { * * IORING_CQE_F_BUFFER If set, the upper 16 bits are the buffer ID * IORING_CQE_F_MORE If set, parent SQE will generate more CQE entries + * IORING_CQE_F_SOCK_NONEMPTY If set, more data to read after socket recv */ #define IORING_CQE_F_BUFFER (1U << 0) #define IORING_CQE_F_MORE (1U << 1) +#define IORING_CQE_F_SOCK_NONEMPTY (1U << 2) enum { IORING_CQE_BUFFER_SHIFT = 16, |