Lines Matching refs:cqe
126 struct io_uring_cqe *cqe;
175 ret = io_uring_wait_cqe(ring, &cqe);
178 ret = io_uring_peek_cqe(ring, &cqe);
184 if (!cqe)
187 data = io_uring_cqe_get_data(cqe);
188 if (cqe->res < 0) {
189 if (cqe->res == -EAGAIN) {
191 io_uring_cqe_seen(ring, cqe);
194 fprintf(stderr, "cqe failed: %s\n",
195 strerror(-cqe->res));
197 } else if ((size_t) cqe->res != data->iov.iov_len) {
199 data->iov.iov_base += cqe->res;
200 data->iov.iov_len -= cqe->res;
201 data->offset += cqe->res;
203 io_uring_cqe_seen(ring, cqe);
220 io_uring_cqe_seen(ring, cqe);