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, 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       len
24           number of bytes to splice
25
26       flags
27           splice modifier flags
28

DESCRIPTION

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