| 63 | } |
| 64 | |
| 65 | static void queue_prepped(struct io_uring *ring, struct io_data *data) |
| 66 | { |
| 67 | struct io_uring_sqe *sqe; |
| 68 | |
| 69 | sqe = io_uring_get_sqe(ring); |
| 70 | assert(sqe); |
| 71 | |
| 72 | if (data->read) |
| 73 | io_uring_prep_readv(sqe, infd, &data->iov, 1, data->offset); |
| 74 | else |
| 75 | io_uring_prep_writev(sqe, outfd, &data->iov, 1, data->offset); |
| 76 | |
| 77 | io_uring_sqe_set_data(sqe, data); |
| 78 | } |
| 79 | |
| 80 | static int queue_read(struct io_uring *ring, off_t size, off_t offset) |
| 81 | { |
no test coverage detected