On 3/7/25 10:26 AM, Pavel Begunkov wrote: > On 3/7/25 17:10, Caleb Sander Mateos wrote: >> On Fri, Mar 7, 2025 at 8:22 AM Pavel Begunkov <asml.silence@xxxxxxxxx> wrote: > ... >>> +IOURINGINLINE void io_uring_prep_writev2_fixed(struct io_uring_sqe *sqe, int fd, >>> + const struct iovec *iovecs, >>> + unsigned nr_vecs, __u64 offset, >>> + int flags, int buf_index) >>> +{ >>> + io_uring_prep_writev2(sqe, fd, iovecs, nr_vecs, offset, flags); >>> + sqe->opcode = IORING_OP_WRITE_FIXED; >> >> IORING_OP_WRITEV_FIXED? > > Good catch, that came from a prototype where it was based on > that opcode, I should just use the helper in the test. Both also need an ffi addition in the map. -- Jens Axboe