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

Function io_uring_sqe_shift_from_flags

src/include/liburing.h:1747–1751  ·  view source on GitHub ↗

* 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]. */

Source from the content-addressed store, hash-verified

1745 * SQE `index` can be computed as &sq.sqes[(index & sq.ring_mask) << sqe_shift].
1746 */
1747IOURINGINLINE unsigned io_uring_sqe_shift_from_flags(unsigned flags)
1748 LIBURING_NOEXCEPT
1749{
1750 return !!(flags & IORING_SETUP_SQE128);
1751}
1752
1753IOURINGINLINE unsigned io_uring_sqe_shift(const struct io_uring *ring)
1754 LIBURING_NOEXCEPT

Callers 2

params_sqes_sizeFunction · 0.85
io_uring_sqe_shiftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected