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

Function wait_nr

test/submit-reuse.c:85–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static int wait_nr(int nr)
86{
87 int i, ret;
88
89 for (i = 0; i < nr; i++) {
90 struct io_uring_cqe *cqe;
91
92 ret = io_uring_wait_cqe(&ring, &cqe);
93 if (ret)
94 return ret;
95 if (cqe->res < 0) {
96 fprintf(stderr, "cqe->res=%d\n", cqe->res);
97 return 1;
98 }
99 io_uring_cqe_seen(&ring, cqe);
100 }
101
102 return 0;
103}
104
105static int test_reuse(int argc, char *argv[], int split, int async)
106{

Callers 1

test_reuseFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_reuseFunction · 0.68