---
name: "io_uring_get_events"
section: "3"
platform: "linux"
package: "liburing"
version: "2.15-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/io_uring_get_events"
---

# io\_uring\_get\_events(3)

Flush outstanding requests to CQE ring

## NAME

io\_uring\_get\_events - Flush outstanding requests to CQE ring

## SYNOPSIS

```
#include <liburing.h>
```

**int io\_uring\_get\_events(struct io\_uring \****ring***);**

## DESCRIPTION

The [**io\_uring\_get\_events**(3)](/io_uring_get_events/3.md) 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)](/io_uring_get_events/3.md) returns 0. On failure it returns **-errno**.

## SEE ALSO

[**io\_uring\_get\_sqe**(3)](/io_uring_get_sqe/3.md), [**io\_uring\_submit\_and\_get\_events**(3)](/io_uring_submit_and_get_events/3.md), [**io\_uring\_cq\_has\_overflow**(3)](/io_uring_cq_has_overflow/3.md)
