MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / io_uring_enter

Function io_uring_enter

src/backend/linux_raw/io_uring/syscalls.rs:63–83  ·  view source on GitHub ↗
(
    fd: BorrowedFd<'_>,
    to_submit: u32,
    min_complete: u32,
    flags: IoringEnterFlags,
    arg: *const c_void,
    size: usize,
)

Source from the content-addressed store, hash-verified

61
62#[inline]
63pub(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}

Callers

nothing calls this directly

Calls 1

ret_c_uintFunction · 0.85

Tested by

no test coverage detected