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

NAME

6       io_uring_prep_splice - prepare an splice request
7

SYNOPSIS

9       #include <fcntl.h>
10       #include <liburing.h>
11
12       void io_uring_prep_splice(struct io_uring_sqe *sqe,
13                                 int fd_in,
14                                 int64_t off_in,
15                                 int fd_out,
16                                 int64_t off_out,
17                                 unsigned int nbytes,
18                                 unsigned int splice_flags);
19

DESCRIPTION

21       The  io_uring_prep_splice(3)  function  prepares  a splice request. The
22       submission queue entry sqe is setup to use as input the file descriptor
23       fd_in  at offset off_in, splicing data to the file descriptor at fd_out
24       and at offset off_out.  nbytes bytes of data should be spliced  between
25       the  two  descriptors.   splice_flags are modifier flags for the opera‐
26       tion. See splice(2) for the generic splice flags.
27
28       If the fd_out descriptor, IOSQE_FIXED_FILE can be set in the SQE to in‐
29       dicate    that.   For   the   input   file,   the   io_uring   specific
30       SPLICE_F_FD_IN_FIXED can be set in splice_flags and fd_in  given  as  a
31       registered file descriptor offset.
32
33       This  function  prepares  an async splice(2) request. See that man page
34       for details.
35
36

RETURN VALUE

38       None
39

ERRORS

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

SEE ALSO

48       io_uring_get_sqe(3),     io_uring_submit(3),      io_uring_register(2),
49       splice(2)
50
51
52
53liburing-2.2                    March 13, 2022         io_uring_prep_splice(3)
Impressum