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

Function test_wait_reg_offset

test/reg-wait.c:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static bool has_kernel_regions;
27
28static 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
39static int __init_ring_with_region(struct io_uring *ring, unsigned ring_flags,
40 struct io_uring_mem_region_reg *pr,

Callers 1

test_offsetsFunction · 0.85

Calls 1

__sys_io_uring_enter2Function · 0.50

Tested by

no test coverage detected