Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\splice.c Create Date:2022-07-28 20:11:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:generic_file_splice_read - splice data from file to a pipe*@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:

Proto:ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)

Type:ssize_t

Parameter:

TypeParameterName
struct file *in
loff_t *ppos
struct pipe_inode_info *pipe
size_tlen
unsigned intflags
309  iov_iter_pipe( & to, generic data direction definitions , pipe, len)
310  i_head = head
311  init_sync_kiocb( & kiocb, in)
312  The 'ki_filp' pointer is shared in a union for aio = ppos
313  ret = call_read_iter(in, & kiocb, & to)
314  If ret > 0 Then
315  ppos = The 'ki_filp' pointer is shared in a union for aio
316  file_accessed(in)
317  Else if ret < 0 Then
318  head = i_head
319  iov_offset = 0
320  iov_iter_advance( & to, 0)
325  If ret == -EFAULT Then ret = -EAGAIN
329  Return ret