(
fd: BorrowedFd<'_>,
to_submit: u32,
min_complete: u32,
flags: IoringEnterFlags,
arg: *const c_void,
size: usize,
)
| 61 | |
| 62 | #[inline] |
| 63 | pub(crate) unsafe fn io_uring_enter( |
| 64 | fd: BorrowedFd<'_>, |
| 65 | to_submit: u32, |
| 66 | min_complete: u32, |
| 67 | flags: IoringEnterFlags, |
| 68 | arg: *const c_void, |
| 69 | size: usize, |
| 70 | ) -> io::Result<u32> { |
| 71 | // This is not `_readonly` because `io_uring_enter` waits for I/O to |
| 72 | // complete, and I/O could involve writing to memory buffers, which |
| 73 | // could be a side effect depended on by the caller. |
| 74 | ret_c_uint(syscall!( |
| 75 | __NR_io_uring_enter, |
| 76 | fd, |
| 77 | c_uint(to_submit), |
| 78 | c_uint(min_complete), |
| 79 | flags, |
| 80 | arg, |
| 81 | pass_usize(size) |
| 82 | )) |
| 83 | } |
nothing calls this directly
no test coverage detected