MCPcopy Create free account
hub / github.com/axboe/liburing / io_uring_cq_ready

Function io_uring_cq_ready

src/include/liburing.h:1780–1784  ·  view source on GitHub ↗

* Returns how many unconsumed entries are ready in the CQ ring */

Source from the content-addressed store, hash-verified

1778 * Returns how many unconsumed entries are ready in the CQ ring
1779 */
1780IOURINGINLINE unsigned io_uring_cq_ready(const struct io_uring *ring)
1781 LIBURING_NOEXCEPT
1782{
1783 return io_uring_smp_load_acquire(ring->cq.ktail) - *ring->cq.khead;
1784}
1785
1786/*
1787 * Returns true if there are overflow entries waiting to be flushed onto

Callers 7

testFunction · 0.85
test_overflow_handlingFunction · 0.85
test_eventfdFunction · 0.85
test_flagFunction · 0.85
test_ring_shutdownFunction · 0.85
mainFunction · 0.85
io_uring_peek_batch_cqe_Function · 0.85

Calls

no outgoing calls

Tested by 4

test_overflow_handlingFunction · 0.68
test_eventfdFunction · 0.68
test_flagFunction · 0.68
test_ring_shutdownFunction · 0.68