Re: Support for random access file reads

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

 



Hi Tim,

> I am new to io-uring and would like to read bytes from a specific
> position in a file. I was looking for some kind of pread/preadv
> functionality in io-uring but couldn't see any.
> 
> Perhaps the expectation that the file descriptor offset is explicitly
> set via lseek outside of io-uring, to enable random file access use
> cases like mine?

Look for IORING_OP_READ/IORING_OP_READV and io_uring_prep_read/io_uring_prep_readv() they
all take an offset.

metze



Attachment: signature.asc
Description: OpenPGP digital signature


[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