'\" t .\" Title: do_splice_direct .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: splice API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DO_SPLICE_DIRECT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "splice API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" do_splice_direct \- splices data directly between two files .SH "SYNOPSIS" .HP \w'long\ do_splice_direct('u .BI "long do_splice_direct(struct\ file\ *\ " "in" ", loff_t\ *\ " "ppos" ", struct\ file\ *\ " "out" ", loff_t\ *\ " "opos" ", size_t\ " "len" ", unsigned\ int\ " "flags" ");" .SH "ARGUMENTS" .PP \fIin\fR .RS 4 file to splice from .RE .PP \fIppos\fR .RS 4 input file offset .RE .PP \fIout\fR .RS 4 file to splice to .RE .PP \fIopos\fR .RS 4 output file offset .RE .PP \fIlen\fR .RS 4 number of bytes to splice .RE .PP \fIflags\fR .RS 4 splice modifier flags .RE .SH "DESCRIPTION" .PP For use by \fBdo_sendfile\fR\&. 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 \fBsendfile\fR)\&. So this helper can splice directly through a process\-private pipe\&. .SH "COPYRIGHT" .br