---
name: "splice_from_pipe_feed"
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/splice_from_pipe_feed"
---

# splice\_from\_pipe\_feed(9)

feed available data from a pipe to a file

## NAME

splice\_from\_pipe\_feed - feed available data from a pipe to a file

## SYNOPSIS

**int splice\_from\_pipe\_feed(struct pipe\_inode\_info \*** *pipe***, struct splice\_desc \*** *sd***, splice\_actor \*** *actor***);**

## ARGUMENTS

*pipe*

pipe to splice from

*sd*

information to *actor*

*actor*

handler that splices the data

## DESCRIPTION

This function loops over the pipe and calls *actor* to do the actual moving of a single struct pipe\_buffer to the desired destination. It returns when there's no more buffers left in the pipe or if the requested number of bytes (*sd*-\>total\_len) have been copied. It returns a positive number (one) if the pipe needs to be filled with more data, zero if the required number of bytes have been copied and -errno on error.

This, together with splice\_from\_pipe\_{begin,end,next}, may be used to implement the functionality of **\_\_splice\_from\_pipe** when locking is required around copying the pipe buffers to the destination.

## COPYRIGHT
