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

Function main

test/defer-tw-timeout.c:154–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154int main(int argc, char *argv[])
155{
156 struct io_uring ring;
157 char *fname = NULL;
158 int ret;
159
160 ret = io_uring_queue_init(8, &ring, IORING_SETUP_SINGLE_ISSUER | IORING_SETUP_DEFER_TASKRUN);
161 if (ret == -EINVAL)
162 return T_EXIT_SKIP;
163
164 if (argc > 1)
165 fname = argv[1];
166
167 ret = test_file(&ring, fname);
168 if (ret != T_EXIT_PASS)
169 return ret;
170
171 ret = test_poll(&ring);
172 if (ret != T_EXIT_PASS)
173 return ret;
174
175 return T_EXIT_PASS;
176}

Callers

nothing calls this directly

Calls 3

io_uring_queue_initFunction · 0.85
test_pollFunction · 0.85
test_fileFunction · 0.70

Tested by

no test coverage detected