函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_clone_file_range

函数原型: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)

返回类型:loff_t

参数:

类型参数名称
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  如果i_sb不等于i_sb则返回:负EXDEV
2043  ret等于Performs common checks before doing a file copy/clone* from @file_in to @file_out.
2044  如果ret小于0则返回:ret
2047  如果非remap_file_range则返回:负EOPNOTSUPP
2050  ret等于remap_verify_area(file_in, pos_in, len, false)
2051  如果ret则返回:ret
2054  ret等于remap_verify_area(file_out, pos_out, len, true)
2055  如果ret则返回:ret
2058  ret等于remap_file_range(file_in, pos_in, file_out, pos_out, len, remap_flags)
2060  如果ret小于0则返回:ret
2063  snotify_access - file was read
2064  snotify_modify - file was modified
2065  返回:ret
调用者
名称描述
vfs_clone_file_range