Skip to content

Can io_uring_prep_sendto() make use of registered buffers? #1002

Answered by isilence
jmillan asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer, it's not supported. It can be added to normal sends, but that wouldn't make any performance difference. Is there a use case for that?

Note, *_OP_SENDZC supports fixed buffers because it does make a difference for it.

sqe->buf_index = idx;
sqe->opcode |= IORING_OP_WRITE_FIXED;

IORING_OP_WRITE_FIXED is not a flag but an opcode, so it's not how it works. For example, _OP_SENDZC has a bit different way for enabling fixed buffers, you can find it in liburing examples.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jmillan
Comment options

@isilence
Comment options

@jmillan
Comment options

Answer selected by jmillan
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