Skip to content
Snippets Groups Projects
Commit f8e85cf2 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: add support for IORING_OP_CONNECT


This allows an application to call connect() in an async fashion. Like
other opcodes, we first try a non-blocking connect, then punt to async
context if we have to.

Note that we can still return -EINPROGRESS, and in that case the caller
should use IORING_OP_POLL_ADD to do an async wait for completion of the
connect request (just like for regular connect(2), except we can do it
async here too).

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bd3ded31
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment