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

Function main

test/probe.c:105–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int main(int argc, char *argv[])
106{
107 struct io_uring ring;
108 int ret;
109
110 if (argc > 1)
111 return 0;
112
113 ret = io_uring_queue_init(8, &ring, 0);
114 if (ret) {
115 fprintf(stderr, "ring setup failed\n");
116 return 1;
117 }
118
119 ret = test_probe(&ring);
120 if (ret) {
121 fprintf(stderr, "test_probe failed\n");
122 return ret;
123 }
124 if (no_probe)
125 return 0;
126
127 ret = test_probe_helper(&ring);
128 if (ret) {
129 fprintf(stderr, "test_probe failed\n");
130 return ret;
131 }
132
133
134 return 0;
135}

Callers

nothing calls this directly

Calls 3

io_uring_queue_initFunction · 0.85
test_probeFunction · 0.85
test_probe_helperFunction · 0.85

Tested by

no test coverage detected