1io_uring_prep_send_zc(3) liburing Manual io_uring_prep_send_zc(3)
2
3
4
6 io_uring_prep_send_zc - prepare a zerocopy send request
7
9 #include <liburing.h>
10
11 void io_uring_prep_send_zc(struct io_uring_sqe *sqe,
12 int sockfd,
13 const void *buf,
14 size_t len,
15 int flags,
16 int zc_flags);
17
19 The io_uring_prep_send_zc(3) function prepares a zerocopy send request.
20 The submission queue entry sqe is setup to use the file descriptor
21 sockfd to start sending the data from buf of size len bytes with send
22 modifier flags flags and zerocopy modifier flags zc_flags.
23
24 This function prepares an async zerocopy send(2) request. See that man
25 page for details. For details on the zerocopy nature of it, see io_ur‐
26 ing_enter(2).
27
28
30 None
31
33 The CQE res field will contain the result of the operation. See the re‐
34 lated man page for details on possible values. Note that where synchro‐
35 nous system calls will return -1 on failure and set errno to the actual
36 error value, io_uring never uses errno. Instead it returns the negated
37 errno directly in the CQE res field.
38
40 io_uring_get_sqe(3), io_uring_submit(3), io_uring_prep_send(3), io_ur‐
41 ing_enter(2), send(2)
42
43
44
45liburing-2.3 September 6, 2022 io_uring_prep_send_zc(3)