函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:splice_from_pipe - splice data from a pipe to a file*@pipe: pipe to splice from*@out: file to splice to*@ppos: position in @out*@len: how many bytes to splice*@flags: splice modifier flags*@actor: handler that splices the data* Description:

函数原型:ssize_t splice_from_pipe(struct pipe_inode_info *pipe, struct file *out, loff_t *ppos, size_t len, unsigned int flags, splice_actor *actor)

返回类型:ssize_t

参数:

类型参数名称
struct pipe_inode_info *pipe
struct file *out
loff_t *ppos
size_tlen
unsigned intflags
splice_actor *actor
663  struct splice_desc sd = {maining length = len, splice flags = flags, le position = * ppos, le to read/write = out, }
670  pipe_lock(pipe)
671  ret等于__splice_from_pipe - splice data from a pipe to given actor*@pipe: pipe to splice from*@sd: information to @actor*@actor: handler that splices the data* Description:* This function does little more than loop over the pipe and call*@actor to do the actual
672  pipe_unlock(pipe)
674  返回:ret
调用者
名称描述
default_file_splice_write
generic_splice_sendpagegeneric_splice_sendpage - splice data from a pipe to a socket*@pipe: pipe to splice from*@out: socket to write to*@ppos: position in @out*@len: number of bytes to splice*@flags: splice modifier flags* Description: