* Returns the bit shift needed to index the SQ. * This shift is 1 for rings with big SQEs, and 0 for rings with normal SQEs. * SQE `index` can be computed as &sq.sqes[(index & sq.ring_mask) << sqe_shift]. */
| 1745 | * SQE `index` can be computed as &sq.sqes[(index & sq.ring_mask) << sqe_shift]. |
| 1746 | */ |
| 1747 | IOURINGINLINE unsigned io_uring_sqe_shift_from_flags(unsigned flags) |
| 1748 | LIBURING_NOEXCEPT |
| 1749 | { |
| 1750 | return !!(flags & IORING_SETUP_SQE128); |
| 1751 | } |
| 1752 | |
| 1753 | IOURINGINLINE unsigned io_uring_sqe_shift(const struct io_uring *ring) |
| 1754 | LIBURING_NOEXCEPT |
no outgoing calls
no test coverage detected