io_uring_sq_ready - Man Page
number of unconsumed or unsubmitted entries in the SQ ring
#include <liburing.h> unsigned io_uring_sq_ready(const struct io_uring *ring);
The 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.
Returns the number of unconsumed or unsubmitted entries in the SQ ring.
January 25, 2022 liburing-2.1 liburing Manual