io_uring/epoll: add support for provided buffers
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Feb 2025 16:09:38 +0000 (09:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Feb 2025 18:22:04 +0000 (11:22 -0700)
commit70292a4afae517193f3ee4f22c7d708664d1a688
tree237a55f15ccb2e0e1a829d6b2e72b4cebc6107be
parentad14f3e9da260c903ede4ffcb312f95c0f222c5e
io_uring/epoll: add support for provided buffers

This will be a prerequisite for adding multishot support, but can be
used with single shot support as well. Works like any other request that
supports provided buffers - set addr to NULL and ensure that
sqe->buf_group is set, and IOSQE_BUFFER_SELECT in sqe->flags. Then epoll
wait will pick a buffer from that group and store the events there.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/epoll.c
io_uring/opdef.c