io_uring_cq_has_overflow3
Returns if there are overflow entries waiting to move to the cq ring
Usage
#include <liburing.h>
bool io_uring_cq_has_overflow(const struct io_uring *ring);
Overview
The io_uring_cq_has_overflow(3) function informs the application if CQ entries have overflowed and are waiting to be flushed to the CQ ring. For example using io_uring_get_events(3)
Notes
Using this function is only valid if the ring has IORING_FEAT_NODROP set, as it's checking for a flag set by kernels supporting that feature. For really old kernels that don't support this feature, if CQE overflow is experienced the CQEs are lost. If that happens, the CQ ring overflow offset will get incremented.
Return value
True if there are CQ entries waiting to be flushed to the CQ ring.
Releases
3 releases since Debian 12 (Bookworm); the text changed 1 time.