* Returns how many unconsumed entries are ready in the CQ ring */
| 1778 | * Returns how many unconsumed entries are ready in the CQ ring |
| 1779 | */ |
| 1780 | IOURINGINLINE 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 |
no outgoing calls