News for hackers. Stuff that matters.
Re:Io_uring By Example: cat, cp and a web server with io_uring by shuss on Monday April 06, 2020 @01:35PM (#22795811)
Nope. io_uring is an API that helps with asynchronous I/O.
Re:Io_uring By Example: cat, cp and a web server with io_uring by unlinked_dll on Monday April 06, 2020 @01:45PM (#22795921)
That's kind of my question. I want async I/O with a device, can io_uring help?
Re:Io_uring By Example: cat, cp and a web server with io_uring by Aissen on Monday April 06, 2020 @01:53PM (#22796031)
If you have a character/block device that does read/write ops, you'd probably get io_uring support for free.
Re:Io_uring By Example: cat, cp and a web server with io_uring by navaati on Monday April 06, 2020 @03:14PM (#22796847)
As neighbour says, io_uring is for really high performance (as in high throughput) stuff, so… not I2C !

But you can still want async I/O with an I2C device, of course, as in you don't want to block a thread to wait on a message. And for that I believe you can still use good old select/epoll as usual on your I2C device file, and as a consequence also just use your favourite async I/O framework of the day (libevent, node.js, what have you).

Re:Io_uring By Example: cat, cp and a web server with io_uring by asveikau on Monday April 06, 2020 @04:36PM (#22797554)
Does your device have a file descriptor, as is traditional in Unix? Seems like the theoretical answer should then be yes.