io_uring_sq_space_left − free space in the SQ ring
#include <liburing.h>
unsigned io_uring_sq_space_left(const struct io_uring *ring);
The io_uring_sq_space_left(3) function returns how much space is left in the SQ ring belonging to the ring param.
Returns the number of availables entries in the SQ ring.
io_uring_sq_ready(3)