| 28 | }; |
| 29 | |
| 30 | static 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 | |
| 43 | static int get_file_size(int fd, off_t *size) |
| 44 | { |
no test coverage detected