函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-27 15:26:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Performs common checks before doing a file copy/clone* from @file_in to @file_out.

函数原型:int generic_file_rw_checks(struct file *file_in, struct file *file_out)

返回类型:int

参数:

类型参数名称
struct file *file_in
struct file *file_out
3052  inode_in等于file_inode(file_in)
3053  inode_out等于file_inode(file_out)
3056  如果S_ISDIR(i_mode)或S_ISDIR(i_mode)则返回:负EISDIR
3058  如果非S_ISREG(i_mode)或非S_ISREG(i_mode)则返回:负EINVAL
3061  如果非f_mode按位与le is open for reading 的值或非f_mode按位与le is open for writing 的值或f_flags按位与O_APPEND则返回:负EBADF
3066  返回:0
调用者
名称描述
generic_copy_file_checksPerforms necessary checks before doing a file copy* Can adjust amount of bytes to copy via @req_count argument.* Returns appropriate error code that caller should return or* zero in case the copy should be allowed.
do_clone_file_range