fn read(self: *IO_Uring, user_data: u64, fd: os.fd_t, buffer: ReadBuffer, offset: u64) !*linux.io_uring_sqe
[src]
Queues (but does not submit) an SQE to perform a read(2)
or preadv
depending on the buffer type.
- Reading into a
ReadBuffer.buffer
usesread(2)
- Reading into a
ReadBuffer.iovecs
usespreadv(2)
If you want to do apreadv2()
then setrw_flags
on the returned SQE. See https://linux.die.net/man/2/preadv.
Returns a pointer to the SQE.