MCPcopy Create free account
hub / github.com/axboe/liburing / queue_prepped

Function queue_prepped

examples/io_uring-cp.c:65–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static 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
80static int queue_read(struct io_uring *ring, off_t size, off_t offset)
81{

Callers 2

queue_writeFunction · 0.85
copy_fileFunction · 0.85

Calls 1

io_uring_get_sqeFunction · 0.50

Tested by

no test coverage detected