We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io_uring_cqe_shift
Testing io_uring_cqe_shift, The comment says:
1
2
I am actually getting 0 for standard cqe, and 1 when using IORING_SETUP_CQE32. Comment should be fixed? Maybe a test?
0
IORING_SETUP_CQE32
The text was updated successfully, but these errors were encountered:
That's used for bit shift operation in io_uring_cqe_index().
io_uring_cqe_index()
#define io_uring_cqe_index(ring,ptr,mask) \ (((ptr) & (mask)) << io_uring_cqe_shift(ring))
n << 0 is the same as n * 1 n << 1 is the same as n * 2
n << 0
n * 1
n << 1
n * 2
So basically, 0 means multiply by 1, and 1 means multiply by 2.
Sorry, something went wrong.
@alviroiskandar Makes sense. So the comment the should be above io_uring_cqe_index
io_uring_cqe_index
Yes, the comment should change. The entire 2nd line can be killed, these 1/2 description tries to verbatim repeat what the code does.
No branches or pull requests
Testing io_uring_cqe_shift, The comment says:
1
2
I am actually getting
0
for standard cqe, and1
when usingIORING_SETUP_CQE32
. Comment should be fixed? Maybe a test?The text was updated successfully, but these errors were encountered: