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

Function verify_seq

test/recvsend_bundle.c:145–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static int verify_seq(struct recv_data *rd, void *verify_ptr, int verify_sz,
146 int start_bid)
147{
148 unsigned long *seqp;
149 int seq_size = verify_sz / sizeof(unsigned long);
150 int i;
151
152 seqp = verify_ptr;
153 for (i = 0; i < seq_size; i++) {
154 if (rd->seq != *seqp) {
155 fprintf(stderr, "bid=%d, got seq %lu, wanted %lu, offset %d\n", start_bid, *seqp, rd->seq, i);
156 return 0;
157 }
158 seqp++;
159 rd->seq++;
160 }
161
162 return 1;
163}
164
165static int recv_get_cqe(struct io_uring *ring, struct recv_data *rd,
166 struct io_uring_cqe **cqe)

Callers 1

do_recvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected