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

Function test_io

test/read-write.c:290–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290static int test_io(const char *file, int write, int buffered, int sqthread,
291 int fixed, int nonvec, int exp_len, bool worker_offload)
292{
293 struct io_uring ring;
294 int ret, ring_flags = 0;
295
296 if (sqthread)
297 ring_flags = IORING_SETUP_SQPOLL;
298
299 ret = t_create_ring(64, &ring, ring_flags);
300 if (ret == T_SETUP_SKIP)
301 return 0;
302 if (ret != T_SETUP_OK) {
303 fprintf(stderr, "ring create failed: %d\n", ret);
304 return 1;
305 }
306
307 ret = __test_io(file, &ring, write, buffered, sqthread, fixed, nonvec,
308 0, 0, exp_len, worker_offload);
309 io_uring_queue_exit(&ring);
310 return ret;
311}
312
313static int read_poll_link(const char *file)
314{

Callers 1

mainFunction · 0.70

Calls 3

t_create_ringFunction · 0.85
io_uring_queue_exitFunction · 0.85
__test_ioFunction · 0.70

Tested by

no test coverage detected