Skip to content

Migrating from epoll_wait to liburing #520

Answered by axboe
gamedev8 asked this question in Q&A
Discussion options

You must be logged in to vote

Really not much difference if you just want to use it as a direct epoll replacement, you would just use io_uring_for_each_cqe(), for example, to iterate available CQEs in the CQ ring after wait returns. Then don't forget to use io_uring_cq_advance() when done looping to consume the number of entries that you handled.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gamedev8
Comment options

@gamedev8
Comment options

@axboe
Comment options

Answer selected by gamedev8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants