axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.77k stars 398 forks source link

Can we know how many bytes we have read by using io_uring_prep_readv method? #1188

Closed 617076674 closed 1 month ago

617076674 commented 1 month ago

In ssize_t readv(int fd, const struct iovec *iov, int iovcnt); function, the return value is the number of bytes read. How can we known how mant bytes we have read through io_uring_prep_readv method?

axboe commented 1 month ago

Like any other operation, the result is returned in cqe->res