io_uring_get_events(3)

io_uring_get_events3

Flush outstanding requests to cqe ring

Usage

#include <liburing.h>

int io_uring_get_events(struct io_uring *ring);

Overview

The io_uring_get_events(3) function runs outstanding work and flushes completion events to the CQE ring.

There can be events needing to be flushed if the ring was full and had overflowed. Alternatively if the ring was setup with the IORING_SETUP_DEFER_TASKRUN flag then this will process outstanding tasks, possibly resulting in more CQEs.

Return value

On success io_uring_get_events(3) returns 0. On failure it returns -errno.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

From liburing 2.15-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.