函数逻辑报告 |
Source Code:mm\filemap.c |
Create Date:2022-07-27 15:26:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Performs necessary checks before doing a clone.* Can adjust amount of bytes to clone via @req_count argument.* Returns appropriate error code that caller should return or* zero in case the clone should be allowed.
函数原型:int generic_remap_checks(struct file *file_in, loff_t pos_in, struct file *file_out, loff_t pos_out, loff_t *req_count, unsigned int remap_flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file_in | |
loff_t | pos_in | |
struct file * | file_out | |
loff_t | pos_out | |
loff_t * | req_count | |
unsigned int | remap_flags |
2984 | bs等于s_blocksize |
2988 | 如果非IS_ALIGNED(pos_in, bs)或非IS_ALIGNED(pos_out, bs)则返回:负EINVAL |
3009 | 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. |
3021 | bcount等于@a is a power of 2 value (size_in, bs)减pos_in |
3022 | 否则 |
3023 | 如果非IS_ALIGNED(count, bs)则count等于ALIGN_DOWN(count, bs) |
3038 | 如果req_count不等于count且非remap_flags按位与REMAP_FILE_CAN_SHORTEN的值则返回:负EINVAL |
3042 | 返回:0 |
名称 | 描述 |
---|---|
generic_remap_file_range_prep | Check that the two inodes are eligible for cloning, the ranges make* sense, and then flush all dirty data. Caller must ensure that the* inodes have been locked against any other modifications. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |