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
18 The io_uring_prep_send(3) function prepares a send request. The submis‐
19 sion queue entry sqe is setup to use the file descriptor sockfd to
20 start sending the data from buf of size len bytes and with modifier
21 flags flags.
22
23 This function prepares an async send(2) request. See that man page for
24 details.
25
26
28 None
29
31 The CQE res field will contain the result of the operation. See the re‐
32 lated man page for details on possible values. Note that where synchro‐
33 nous system calls will return -1 on failure and set errno to the actual
34 error value, io_uring never uses errno. Instead it returns the negated
35 errno directly in the CQE res field.
36
38 io_uring_get_sqe(3), io_uring_submit(3), send(2)
39
40
41
42liburing-2.2 March 12, 2022 io_uring_prep_send(3)