• J
    io_uring: add non-vectored read/write commands · 30b7fe8b
    Jens Axboe 提交于
    to #26323588
    
    commit 3a6820f2bb8a079975109c25a5d1f29f46bce5d2 upstream.
    
    For uses cases that don't already naturally have an iovec, it's easier
    (or more convenient) to just use a buffer address + length. This is
    particular true if the use case is from languages that want to create
    a memory safe abstraction on top of io_uring, and where introducing
    the need for the iovec may impose an ownership issue. For those cases,
    they currently need an indirection buffer, which means allocating data
    just for this purpose.
    
    Add basic read/write that don't require the iovec.
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    Signed-off-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
    Acked-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
    30b7fe8b
io_uring.c 147.3 KB