'\" t .\" Title: generic_file_splice_read .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: splice API .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "GENERIC_FILE_SPLICE_" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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" generic_file_splice_read \- splice data from file to a pipe .SH "SYNOPSIS" .HP \w'ssize_t\ generic_file_splice_read('u .BI "ssize_t generic_file_splice_read(struct\ file\ *\ " "in" ", loff_t\ *\ " "ppos" ", struct\ pipe_inode_info\ *\ " "pipe" ", size_t\ " "len" ", unsigned\ int\ " "flags" ");" .SH "ARGUMENTS" .PP \fIstruct file * in\fR .RS 4 file to splice from .RE .PP \fIloff_t * ppos\fR .RS 4 position in \fIin\fR .RE .PP \fIstruct pipe_inode_info * pipe\fR .RS 4 pipe to splice to .RE .PP \fIsize_t len\fR .RS 4 number of bytes to splice .RE .PP \fIunsigned int flags\fR .RS 4 splice modifier flags .RE .SH "DESCRIPTION" .PP Will read pages from given file and fill them into a pipe\&. Can be used as long as it has more or less sane \->\fBread_iter\fR\&. .SH "COPYRIGHT" .br