1SPLICE_FROM_PIPE_FEE(9) splice API SPLICE_FROM_PIPE_FEE(9)
2
3
4
6 splice_from_pipe_feed - feed available data from a pipe to a file
7
9 int splice_from_pipe_feed(struct pipe_inode_info * pipe,
10 struct splice_desc * sd,
11 splice_actor * actor);
12
14 pipe
15 pipe to splice from
16
17 sd
18 information to actor
19
20 actor
21 handler that splices the data
22
24 This function loops over the pipe and calls actor to do the actual
25 moving of a single struct pipe_buffer to the desired destination. It
26 returns when there's no more buffers left in the pipe or if the
27 requested number of bytes (sd->total_len) have been copied. It returns
28 a positive number (one) if the pipe needs to be filled with more data,
29 zero if the required number of bytes have been copied and -errno on
30 error.
31
32 This, together with splice_from_pipe_{begin,end,next}, may be used to
33 implement the functionality of __splice_from_pipe when locking is
34 required around copying the pipe buffers to the destination.
35
37Kernel Hackers Manual 3.10 June 2019 SPLICE_FROM_PIPE_FEE(9)