logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

io_uring_cq_has_overflow - returns if there are overflow entries waiting to move to the CQ ring

Description

       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)

Name

       io_uring_cq_has_overflow - returns if there are overflow entries waiting to move to the CQ ring

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.

See Also

io_uring_get_events(3)

liburing-2.3                                    September 5, 2022                    io_uring_cq_has_overflow(3)

Synopsis

#include<liburing.h>boolio_uring_cq_has_overflow(conststructio_uring*ring);

See Also