spacejam / rio

pure rust io_uring library, built on libc, thread & async friendly, misuse resistant
936 stars 45 forks source link

Setting sq_poll fails #21

Open wspeirs opened 4 years ago

wspeirs commented 4 years ago

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!

Licenser commented 4 years ago

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.