Best way to message a ring from outside of any ring. #1012
-
I know that there is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This could potentially be added as a write operation indeed, but I don't think we want that extra complexity. Right now an io_uring fd does not support read/write, and adding the ability to do so would require more checking than just simply adding the ability to write to the fd. Hence I'm reluctant to do that, when the app could just setup a ring and use that for messaging. |
Beta Was this translation helpful? Give feedback.
-
I think your solution is about as efficient as you will get. or if you don't care about efficiency as much you could just use a pipe as your in-memory queue and read from that in the io_uring |
Beta Was this translation helpful? Give feedback.
This could potentially be added as a write operation indeed, but I don't think we want that extra complexity. Right now an io_uring fd does not support read/write, and adding the ability to do so would require more checking than just simply adding the ability to write to the fd. Hence I'm reluctant to do that, when the app could just setup a ring and use that for messaging.