Re: Unclear documentation about IORING_OP_READ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

> This is intended behavior, you should consider the READV to be just
> like preadv2() in that it takes the offset/iov/flags, and ditto on
> the write side. READ is basically what a pread2 would be, if it
> existed.
>
> That said, you can use off == -1 if IORING_FEAT_RW_CUR_POS is set
> in the feature flags upon ring creation, and that'll use (and updated)
> the current file offset. This works for any non-stream/pipe file
> type.
>

That clarifies it. Thanks, Jens.

-- 
Shuveb Hussain



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux