1io_uring_prep_send(3) liburing Manual io_uring_prep_send(3)
2
3
4
6 io_uring_prep_send - prepare a send request
7
9 #include <liburing.h>
10
11 void io_uring_prep_send(struct io_uring_sqe *sqe,
12 int sockfd,
13 const void *buf,
14 size_t len,
15 int flags);
16
17 void io_uring_prep_sendto(struct io_uring_sqe *sqe,
18 int sockfd,
19 const void *buf,
20 size_t len,
21 int flags,
22 const struct sockaddr *addr,
23 socklen_t addrlen);
24
26 The io_uring_prep_send(3) function prepares a send request. The submis‐
27 sion queue entry sqe is setup to use the file descriptor sockfd to
28 start sending the data from buf of size len bytes and with modifier
29 flags flags.
30
31 Note that using IOSQE_IO_LINK with this request type requires the set‐
32 ting of MSG_WAITALL in the flags argument, as a short send isn't a con‐
33 sidered an error condition without that being set.
34
35 This function prepares an async send(2) request. See that man page for
36 details.
37
38 The io_uring_prep_sendto(3) function prepares a sendto request. The
39 submission queue entry sqe is setup to use the file descriptor sockfd
40 to start sending the data from buf of size len bytes and with modifier
41 flags flags. The destination address is specified by addr and addrlen
42 and must be a valid address for the socket type.
43
44 This function prepares an async sendto(2) request. See that man page
45 for details.
46
47
49 None
50
52 The CQE res field will contain the result of the operation. See the re‐
53 lated man page for details on possible values. Note that where synchro‐
54 nous system calls will return -1 on failure and set errno to the actual
55 error value, io_uring never uses errno. Instead it returns the negated
56 errno directly in the CQE res field.
57
59 io_uring_get_sqe(3), io_uring_submit(3), send(2) sendto(2)
60
61
62
63liburing-2.2 March 12, 2022 io_uring_prep_send(3)