errno).io_uring_enter
fn
int io_uring_enter(int fd, uint to_submit, uint min_complete, uint flags, const sigset_t * sig = null) @systemInitiate and/or complete I/O using the io_uring instance.
Submits SQEs from the submission queue and optionally waits for completions to appear in the completion queue.
Parameters
fd | io_uring file descriptor from io_uring_setup. |
to_submit | Number of SQEs to submit from the submission queue. |
min_complete | Minimum number of CQEs to wait for (if IORING_ENTER_GETEVENTS is set). |
flags | Combination of IORING_ENTER_* flags. |
sig | Optional signal mask for waiting (may be null). |
Returns
Number of CQEs reaped on success, or -1 on error (check
Throws
Does not throw. Returns -1 on error and sets
errno.