1io_uring_prep_tee(3) liburing Manual io_uring_prep_tee(3)
2
3
4
6 io_uring_prep_tee - prepare a tee request
7
9 #include <fcntl.h>
10 #include <liburing.h>
11
12 void io_uring_prep_tee(struct io_uring_sqe *sqe,
13 int fd_in,
14 int fd_out,
15 unsigned int nbytes,
16 unsigned int splice_flags);
17
19 The io_uring_prep_tee(3) function prepares a tee request. The submis‐
20 sion queue entry sqe is setup to use as input the file descriptor fd_in
21 and as output the file descriptor fd_out duplicating nbytes bytes worth
22 of data. splice_flags are modifier flags for the operation. See tee(2)
23 for the generic splice flags.
24
25 If the fd_out descriptor, IOSQE_FIXED_FILE can be set in the SQE to in‐
26 dicate that. For the input file, the io_uring specific
27 SPLICE_F_FD_IN_FIXED can be set and fd_in given as a registered file
28 descriptor offset.
29
30 This function prepares an async tee(2) request. See that man page for
31 details.
32
33
35 None
36
38 The CQE res field will contain the result of the operation. See the re‐
39 lated man page for details on possible values. Note that where synchro‐
40 nous system calls will return -1 on failure and set errno to the actual
41 error value, io_uring never uses errno. Instead it returns the negated
42 errno directly in the CQE res field.
43
45 io_uring_get_sqe(3), io_uring_submit(3), io_uring_register(2),
46 splice(2), tee(2)
47
48
49
50liburing-2.2 March 13, 2022 io_uring_prep_tee(3)