Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:28
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_copy_file_range

Proto:static ssize_t do_copy_file_range(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, size_t len, unsigned int flags)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file_in
loff_tpos_in
struct file *file_out
loff_tpos_out
size_tlen
unsigned intflags
1610  If copy_file_range && copy_file_range == copy_file_range Then Return copy_file_range(file_in, pos_in, file_out, pos_out, len, flags)
1616  Return generic_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
Caller
NameDescribe
vfs_copy_file_rangepy_file_range() differs from regular file read and write in that it* specifically allows return partial success. When it does so is up to* the copy_file_range method.