io_uring: allow to pass addr into sendzc

Allow to specify an address to zerocopy sends making it more like
sendto(2).

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/70417a8f7c5b51ab454690bae08adc0c187f89e8.1657643355.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Pavel Begunkov
2022-07-12 21:52:45 +01:00
committed by Jens Axboe
parent e29e3bd4b9
commit 092aeedb75
2 changed files with 17 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ struct io_uring_sqe {
__u32 file_index;
struct {
__u16 notification_idx;
__u16 __pad;
__u16 addr_len;
};
};
union {