table of contents
DO_SPLICE_DIRECT(9) | splice API | DO_SPLICE_DIRECT(9) |
NAME¶
do_splice_direct - splices data directly between two files
SYNOPSIS¶
long do_splice_direct(struct file * in, loff_t * ppos, struct file * out, loff_t * opos, size_t len, unsigned int flags);
ARGUMENTS¶
struct file * in
loff_t * ppos
struct file * out
loff_t * opos
size_t len
unsigned int flags
DESCRIPTION¶
For use by do_sendfile. splice can easily emulate sendfile, but doing it in the application would incur an extra system call (splice in + splice out, as compared to just sendfile). So this helper can splice directly through a process-private pipe.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.11 |