io\_uring\_get\_events(3) liburing Manual io\_uring\_get\_events(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

```
int io_uring_get_events(struct io_uring *ring);
```

# [DESCRIPTION](#DESCRIPTION)

The [**io\_uring\_get\_events**(3)](/man/os/liburing/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](#RETURN_VALUE)

On success [**io\_uring\_get\_events**(3)](/man/os/liburing/io_uring_get_events.3) returns 0. On failure it returns **-errno**.

# [SEE ALSO](#SEE_ALSO)

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

September 5, 2022 liburing-2.3

---

Document: io_uring_get_events(3) from liburing 2.15-r5 (Chainguard OS)
Source: https://github.com/axboe/liburing.git
