函数逻辑报告 |
Source Code:fs\iomap\swapfile.c |
Create Date:2022-07-29 11:08:09 |
| Last Modify:2020-03-18 11:03:10 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Accumulate iomaps for this swap file. We have to accumulate iomaps because* swap only cares about contiguous page-aligned physical extents and makes no* distinction between written and unwritten extents.
函数原型:static loff_t iomap_swapfile_activate_actor(struct inode *inode, loff_t pos, loff_t count, void *data, struct iomap *iomap, struct iomap *srcmap)
返回类型:loff_t
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| loff_t | pos | |
| loff_t | count | |
| void * | data | |
| struct iomap * | iomap | |
| struct iomap * | srcmap |
| 89 | 退出 |
| 94 | 默认 |
| 100 | 如果 flags for mapping 按位与IOMAP_F_DIRTY则 |
| 104 | 如果 flags for mapping 按位与IOMAP_F_SHARED则 |
| 110 | 如果 block device for I/O 不等于swap device or bdev of swap file 则 |
| 115 | 如果 length of mapping, bytes 恒等于0则 |
| 117 | memcpy( & accumulated iomap , iomap, accumulated iomap 的长度) |
| 121 | 否则 |
| 126 | memcpy( & accumulated iomap , iomap, accumulated iomap 的长度) |
| 128 | 返回:count |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |