Skip to content

Using IORING_FILE_INDEX_ALLOC cqe result as argument for linked op? #852

Answered by axboe
martinetd asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to use a known fd between two SQEs, then you cannot use the allocator for direct descriptors. That ends up being basically the same as a normal file descriptor, in that you'd need to know what fd is being picked. The only sane way to do that is to let the app manage and pick the descriptor, rather than let the kernel allocate it.

There's currently no support for passing information between SQEs, or from CQE to SQE. Something like the bpf for io_uring work would be needed for that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@martinetd
Comment options

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