函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:26:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Performs 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.
函数原型:int generic_copy_file_checks(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, size_t *req_count, unsigned int flags)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file_in | |
| loff_t | pos_in | |
| struct file * | file_out | |
| loff_t | pos_out | |
| size_t * | req_count | |
| unsigned int | flags |
| 3080 | inode_in等于file_inode(file_in) |
| 3081 | inode_out等于file_inode(file_out) |
| 3091 | 如果IS_IMMUTABLE(inode_out)则返回:负EPERM |
| 3094 | 如果IS_SWAPFILE(inode_in)或IS_SWAPFILE(inode_out)则返回:负ETXTBSY |
| 3108 | ret等于Don't operate on ranges the page cache doesn't support, and don't exceed the* LFS limits. If pos is under the limit it becomes a short access. If it* exceeds the limit we return -EFBIG. |
| 3119 | 返回:0 |
| 名称 | 描述 |
|---|---|
| vfs_copy_file_range | py_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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |