Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_splice_direct - splices data directly between two files*@in: file to splice from*@ppos: input file offset*@out: file to splice to*@opos: output file offset*@len: number of bytes to splice*@flags: splice modifier flags* Description:

Proto:long do_splice_direct(struct file *in, loff_t *ppos, struct file *out, loff_t *opos, size_t len, unsigned int flags)

Type:long

Parameter:

TypeParameterName
struct file *in
loff_t *ppos
struct file *out
loff_t *opos
size_tlen
unsigned intflags
1060  struct splice_desc sd = {current length = len, maining length = len, splice flags = flags, le position = * ppos, le to read/write = out, sendfile: output position = opos, }
1070  If Value for the false possibility is greater at compile time(!(f_mode & le is open for writing )) Then Return -EBADF
1073  If Value for the false possibility is greater at compile time(f_flags & O_APPEND) Then Return -EINVAL
1076  ret = rw_verify_area(WRITE, out, opos, len)
1077  If Value for the false possibility is greater at compile time(ret < 0) Then Return ret
1080  ret = splice_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
1081  If ret > 0 Then ppos = le position
1084  Return ret
Caller
NameDescribe
generic_copy_file_rangegeneric_copy_file_range - copy data between two files*@file_in: file structure to read from*@pos_in: file offset to read from*@file_out: file structure to write data to*@pos_out: file offset to write data to*@len: amount of data to copy*@flags: copy flags
do_sendfile