mbox series

[PATCHSET,0/3] Add support for multishot reads

Message ID 20230911204021.1479172-1-axboe@kernel.dk (mailing list archive)
Headers show
Series Add support for multishot reads | expand

Message

Jens Axboe Sept. 11, 2023, 8:40 p.m. UTC
Hi,

We support multishot for other request types, generally in the shape of
a flag for the request. Doing a flag based approach with reads isn't
straightforward, as the read/write flags are in the RWF_ space. Instead,
add a separate opcode for this, IORING_OP_READ_MULTISHOT.

This can only be used provided buffers, like other multishot request
types that read/receive data.

It can also only be used for pollable file types, like a tun device or
pipes, for example. File types that are always readable (or seekable),
like regular files, cannot be used with multishot reads.