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

Function test_ring

test/submit-and-wait.c:55–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static int test_ring(void)
56{
57 struct io_uring ring;
58 struct io_uring_params p = { };
59 int ret;
60
61 p.flags = 0;
62 ret = io_uring_queue_init_params(8, &ring, &p);
63 if (ret) {
64 fprintf(stderr, "ring setup failed: %d\n", ret);
65 return 1;
66 }
67
68 ret = test(&ring);
69 if (ret) {
70 fprintf(stderr, "test failed\n");
71 goto err;
72 }
73err:
74 io_uring_queue_exit(&ring);
75 return ret;
76}
77
78int main(int argc, char *argv[])
79{

Callers 1

mainFunction · 0.70

Calls 3

io_uring_queue_exitFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected