| 26 | static bool has_kernel_regions; |
| 27 | |
| 28 | static int test_wait_reg_offset(struct io_uring *ring, |
| 29 | unsigned wait_nr, unsigned long offset) |
| 30 | { |
| 31 | return __sys_io_uring_enter2(ring->ring_fd, 0, wait_nr, |
| 32 | IORING_ENTER_GETEVENTS | |
| 33 | IORING_ENTER_EXT_ARG | |
| 34 | IORING_ENTER_EXT_ARG_REG, |
| 35 | (void *)offset, |
| 36 | sizeof(struct io_uring_reg_wait)); |
| 37 | } |
| 38 | |
| 39 | static int __init_ring_with_region(struct io_uring *ring, unsigned ring_flags, |
| 40 | struct io_uring_mem_region_reg *pr, |
no test coverage detected