io_uring_submit_and_get_events - Man Page

submit requests to the submission queue and flush completions

Synopsis

#include <liburing.h>

int io_uring_submit_and_get_events(struct io_uring *ring);

Description

The io_uring_submit_and_get_events(3) function submits the next events to the submission queue as with io_uring_submit(3). After submission it will flush CQEs as with io_uring_get_events(3).

The benefit of this function is that it does both with only one system call.

Return Value

On success io_uring_submit_and_get_events(3) returns the number of submitted submission queue entries. On failure it returns -errno.

See Also

io_uring_submit(3), io_uring_get_events(3)

Referenced By

io_uring_get_events(3).

September 5, 2022 liburing-2.3 liburing Manual