io\_uring\_sq\_ready(3) liburing Manual io\_uring\_sq\_ready(3)

# [NAME](#NAME)

io\_uring\_sq\_ready - number of unconsumed or unsubmitted entries in the SQ ring

# [SYNOPSIS](#SYNOPSIS)

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

```
unsigned io_uring_sq_ready(const struct io_uring *ring);
```

# [DESCRIPTION](#DESCRIPTION)

The [**io\_uring\_sq\_ready**(3)](/man/os/liburing/io_uring_sq_ready.3) function returns the number of unconsumed (if SQPOLL) or unsubmitted entries that exist in the SQ ring belonging to the *ring* param.

Usage of this function only applies if the ring has been setup with **IORING\_SETUP\_SQPOLL,** where request submissions, and hence consumption from the SQ ring, happens through a polling thread.

# [RETURN VALUE](#RETURN_VALUE)

Returns the number of unconsumed or unsubmitted entries in the SQ ring.

# [SEE ALSO](#SEE_ALSO)

[**io\_uring\_cq\_ready**(3)](/man/os/liburing/io_uring_cq_ready.3)

January 25, 2022 liburing-2.1

---

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