函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_copy_file_range

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

返回类型:ssize_t

参数:

类型参数名称
struct file *file_in
loff_tpos_in
struct file *file_out
loff_tpos_out
size_tlen
unsigned intflags
1610  如果copy_file_rangecopy_file_range恒等于copy_file_range则返回:copy_file_range(file_in, pos_in, file_out, pos_out, len, flags)
1616  返回: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
调用者
名称描述
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.