Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Attempt to initiate a splice from a file to a pipe.

Proto:static long do_splice_to(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags)

Type:long

Parameter:

TypeParameterName
struct file *in
loff_t *ppos
struct pipe_inode_info *pipe
size_tlen
unsigned intflags
873  ssize_t( * splice_read)(struct file * , loff_t * , struct pipe_inode_info * , size_t, unsigned int)
877  If Value for the false possibility is greater at compile time(!(f_mode & le is open for reading )) Then Return -EBADF
880  ret = rw_verify_area(generic data direction definitions , in, ppos, len)
881  If Value for the false possibility is greater at compile time(ret < 0) Then Return ret
884  If Value for the false possibility is greater at compile time(len > MAX_RW_COUNT) Then len = MAX_RW_COUNT
887  If splice_read Then splice_read = splice_read
889  Else splice_read = default_file_splice_read
892  Return splice_read(in, ppos, pipe, len, flags)
Caller
NameDescribe
splice_direct_to_actorsplice_direct_to_actor - splices data directly between two non-pipes*@in: file to splice from*@sd: actor information on where to splice to*@actor: handles the data splicing* Description:* This is a special case helper to splice directly between two
do_spliceDetermine where to splice to/from.