* Returns the bit shift needed to index the CQ. * This shift is 1 for rings with big CQEs, and 0 for rings with normal CQEs. * CQE `index` can be computed as &cq.cqes[(index & cq.ring_mask) << cqe_shift]. */
| 423 | * CQE `index` can be computed as &cq.cqes[(index & cq.ring_mask) << cqe_shift]. |
| 424 | */ |
| 425 | IOURINGINLINE unsigned io_uring_cqe_shift_from_flags(unsigned flags) |
| 426 | LIBURING_NOEXCEPT |
| 427 | { |
| 428 | return !!(flags & IORING_SETUP_CQE32); |
| 429 | } |
| 430 | |
| 431 | IOURINGINLINE unsigned io_uring_cqe_shift(const struct io_uring *ring) |
| 432 | LIBURING_NOEXCEPT |
no outgoing calls
no test coverage detected