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

Function setup_context

examples/io_uring-cp.c:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30static int setup_context(unsigned entries, struct io_uring *ring)
31{
32 int ret;
33
34 ret = io_uring_queue_init(entries, ring, 0);
35 if (ret < 0) {
36 fprintf(stderr, "queue_init: %s\n", strerror(-ret));
37 return -1;
38 }
39
40 return 0;
41}
42
43static int get_file_size(int fd, off_t *size)
44{

Callers 1

mainFunction · 0.70

Calls 1

io_uring_queue_initFunction · 0.85

Tested by

no test coverage detected