io_uring/rsrc: allow cloning at an offset
Right now buffer cloning is an all-or-nothing kind of thing - either the whole table is cloned from a source to a destination ring, or nothing at all. However, it's not always desired to clone the whole thing. Allow for the application to specify a source and destination offset, and a number of buffers to clone. If the destination offset is non-zero, then allocate sparse nodes upfront. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -719,7 +719,10 @@ enum {
|
||||
struct io_uring_clone_buffers {
|
||||
__u32 src_fd;
|
||||
__u32 flags;
|
||||
__u32 pad[6];
|
||||
__u32 src_off;
|
||||
__u32 dst_off;
|
||||
__u32 nr;
|
||||
__u32 pad[3];
|
||||
};
|
||||
|
||||
struct io_uring_buf {
|
||||
|
||||
Reference in New Issue
Block a user