---
name: "generic_file_splice_read"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/generic_file_splice_read"
---

# generic\_file\_splice\_read(9)

splice data from file to a pipe

## NAME

generic\_file\_splice\_read - splice data from file to a pipe

## SYNOPSIS

**ssize\_t generic\_file\_splice\_read(struct file \*** *in***, loff\_t \*** *ppos***, struct pipe\_inode\_info \*** *pipe***, size\_t** *len***, unsigned int** *flags***);**

## ARGUMENTS

*in*

file to splice from

*ppos*

position in *in*

*pipe*

pipe to splice to

*len*

number of bytes to splice

*flags*

splice modifier flags

## DESCRIPTION

Will read pages from given file and fill them into a pipe. Can be used as long as it has more or less sane -\>**read\_iter**.

## COPYRIGHT
