函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\splice.c Create Date:2022-07-29 10:42:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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:

函数原型:ssize_t generic_file_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)

返回类型:ssize_t

参数:

类型参数名称
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  文件偏移等于ppos
313  ret等于call_read_iter(in, & kiocb, & to)
314  如果ret大于0则
315  ppos等于文件偏移
316  file_accessed(in)
317  否则如果ret小于0则
318  head等于i_head
319  iov_offset等于0
320  iov_iter_advance( & to, 0)
325  如果ret恒等于负EFAULTret等于负EAGAIN
329  返回:ret