1GENERIC_FILE_SPLICE_(9) splice API GENERIC_FILE_SPLICE_(9)
2
3
4
6 generic_file_splice_read - splice data from file to a pipe
7
9 ssize_t generic_file_splice_read(struct file * in, loff_t * ppos,
10 struct pipe_inode_info * pipe,
11 size_t len, unsigned int flags);
12
14 in
15 file to splice from
16
17 ppos
18 position in in
19
20 pipe
21 pipe to splice to
22
23 len
24 number of bytes to splice
25
26 flags
27 splice modifier flags
28
30 Will read pages from given file and fill them into a pipe. Can be used
31 as long as the address_space operations for the source implements a
32 readpage hook.
33
35Kernel Hackers Manual 2.6. June 2019 GENERIC_FILE_SPLICE_(9)