1io_uring_prep_connect(3)        liburing Manual       io_uring_prep_connect(3)
2
3
4

NAME

6       io_uring_prep_connect - prepare a connect request
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/socket.h>
11       #include <liburing.h>
12
13       void io_uring_prep_connect(struct io_uring_sqe *sqe,
14                                  int sockfd,
15                                  const struct sockaddr *addr,
16                                  socklen_t addrlen);
17

DESCRIPTION

19       The  io_uring_prep_connect(3)  function prepares a connect request. The
20       submission queue entry sqe is setup to use the file  descriptor  sockfd
21       to  start connecting to the destination described by the socket address
22       at addr and of structure length addrlen.
23
24       This function prepares an async connect(2) request. See that  man  page
25       for details.
26
27

RETURN VALUE

29       None
30

ERRORS

32       The CQE res field will contain the result of the operation. See the re‐
33       lated man page for details on possible values. Note that where synchro‐
34       nous system calls will return -1 on failure and set errno to the actual
35       error value, io_uring never uses errno.  Instead it returns the negated
36       errno directly in the CQE res field.
37

NOTES

39       As with any request that passes in data in a struct, that data must re‐
40       main valid until the request has been successfully submitted.  It  need
41       not  remain  valid until completion. Once a request has been submitted,
42       the in-kernel state is stable. Very early kernels (5.4 and earlier) re‐
43       quired  state  to be stable until the completion occurred. Applications
44       can test for this behavior by inspecting the  IORING_FEAT_SUBMIT_STABLE
45       flag passed back from io_uring_queue_init_params(3).
46

SEE ALSO

48       io_uring_get_sqe(3), io_uring_submit(3), connect(2)
49
50
51
52liburing-2.2                    March 13, 2022        io_uring_prep_connect(3)
Impressum