Skip to content

when using buf_ring/provider_buffers, what does the len argument mean in io_uring_prep_recv? #1180

Answered by axboe
Sherlock-Holo asked this question in Q&A
Discussion options

You must be logged in to vote

len == 0 will always mean "use whatever size the buffer has", and where len != 0 is permitted, it will indeed mean "use the min of len and the buffer length".

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sherlock-Holo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants