Open espoal opened 7 months ago
Regarding your second question, AFAIU you can give the buffers back to the ring using ProvideBuffers
. Currently, you always give back all the buffers (since you set number of buffers to 4, and bid to 0). Instead, you can return individual buffers by setting the number of buffers to 1, and bid to the respective buffer index.
I'm writing some
io_uring
examples and I'm currently playing with multishot requests andProvideBuffers
. I have some questions:io_uring
moved fromio_uring_prep_provide_buffers
toring mapped buffers
, as explained here. I don't see this change reflected in the API of this crate, am I wrong?ProvidedBuffers
, how do I signal that some buffers inside a buffer group are ready to be reused? ATM I mark the whole group as available, but is there maybe a way to have more granularity?