函数逻辑报告 |
Source Code:fs\iomap\buffered-io.c |
Create Date:2022-07-29 11:07:23 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:iomap_unshare_actor
函数原型:static loff_t iomap_unshare_actor(struct inode *inode, loff_t pos, loff_t length, void *data, struct iomap *iomap, struct iomap *srcmap)
返回类型:loff_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| loff_t | pos | |
| loff_t | length | |
| void * | data | |
| struct iomap * | iomap | |
| struct iomap * | srcmap |
| 902 | status等于0 |
| 903 | written等于0 |
| 906 | 如果非 flags for mapping 按位与IOMAP_F_SHARED的值则返回:length |
| 909 | 如果 type of mapping 恒等于 blocks allocated, need allocation 或 type of mapping 恒等于locks allocated at @addr in unwritten state 则返回:length |
| 912 | 循环 |
| 913 | offset等于offset_in_page(pos) |
| 914 | bytes等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(loff_t, PAGE_SIZE - offset, length) |
| 917 | status等于iomap_write_begin(inode, pos, bytes, IOMAP_WRITE_F_UNSHARE, & page, iomap, srcmap) |
| 919 | 如果此条件成立可能性小(为编译器优化)(status)则返回:status |
| 924 | 如果此条件成立可能性小(为编译器优化)(status <= 0)则 |
| 925 | 如果WARN_ON_ONCE(status == 0)则返回:负EIO |
| 927 | 返回:status |
| 930 | cond_resched() |
| 939 | 返回:written |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |