Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_clone_file_range

Proto:loff_t do_clone_file_range(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags)

Type:loff_t

Parameter:

TypeParameterName
struct file *file_in
loff_tpos_in
struct file *file_out
loff_tpos_out
loff_tlen
unsigned intremap_flags
2033  WARN_ON_ONCE(remap_flags & These flags control the behavior of the remap_file_range function pointer.* If it is called with len == 0 that means "remap to end of source file".* See Documentation/filesystems/vfs.rst for more details about this call.)
2040  If i_sb != i_sb Then Return -EXDEV
2043  ret = Performs common checks before doing a file copy/clone* from @file_in to @file_out.
2044  If ret < 0 Then Return ret
2047  If Not remap_file_range Then Return -EOPNOTSUPP
2050  ret = remap_verify_area(file_in, pos_in, len, false)
2051  If ret Then Return ret
2054  ret = remap_verify_area(file_out, pos_out, len, true)
2055  If ret Then Return ret
2058  ret = remap_file_range(file_in, pos_in, file_out, pos_out, len, remap_flags)
2060  If ret < 0 Then Return ret
2063  snotify_access - file was read
2064  snotify_modify - file was modified
2065  Return ret
Caller
NameDescribe
vfs_clone_file_range