1DO_SPLICE_DIRECT(9)               splice API               DO_SPLICE_DIRECT(9)
2
3
4

NAME

6       do_splice_direct - splices data directly between two files
7

SYNOPSIS

9       long do_splice_direct(struct file * in, loff_t * ppos,
10                             struct file * out, loff_t * opos, size_t len,
11                             unsigned int flags);
12

ARGUMENTS

14       in
15           file to splice from
16
17       ppos
18           input file offset
19
20       out
21           file to splice to
22
23       opos
24           output file offset
25
26       len
27           number of bytes to splice
28
29       flags
30           splice modifier flags
31

DESCRIPTION

33       For use by do_sendfile. splice can easily emulate sendfile, but doing
34       it in the application would incur an extra system call (splice in +
35       splice out, as compared to just sendfile). So this helper can splice
36       directly through a process-private pipe.
37
39Kernel Hackers Manual 3.10         June 2019               DO_SPLICE_DIRECT(9)
Impressum