spacejam / rio

pure rust io_uring library, built on libc, thread & async friendly, misuse resistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting sq_poll fails

wspeirs opened this issue · comments

Attempting to use sq_poll fails with the following error:

thread '<unnamed>' panicked at 'error in cqe reaper: Os { code: 6, kind: Other, message: "No such device or address" }'

I believe this is because io_uring_register is never called on the fd. I see that register is mapped out in https://github.com/spacejam/rio/blob/master/src/io_uring/syscall.rs#L81 but never appears to be called anywhere.

Am I missing something, or does this still need to be implemented? Thanks!

Heya,
sq_poll is currently not fully implemented #8 tries to implement parts of it but got somewhat stuck. It includes an example that almost works ( needs to be run as root ). Give it a try perhaps you have a insight that moves it forward.