函数逻辑报告 |
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 |
函数名称:Collect physical extents for this swap file. Physical extents reported to* the swap code must be trimmed to align to a page boundary. The logical* offset within the file is irrelevant since the swapfile code maps logical
函数原型:static int iomap_swapfile_add_extent(struct iomap_swapfile_info *isi)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct iomap_swapfile_info * | isi |
42 | first_ppage等于@a is a power of 2 value ( disk offset of mapping, bytes , PAGE_SIZE)右移PAGE_SHIFT determines the page size 位 |
43 | next_ppage等于ALIGN_DOWN( disk offset of mapping, bytes + length of mapping, bytes , PAGE_SIZE)右移PAGE_SHIFT determines the page size 位 |
47 | 如果first_ppage大于等于next_ppage则返回:0 |
57 | 如果 file offset of mapping, bytes 恒等于0则first_ppage_reported自加 |
59 | 如果lowest physical addr seen (pages) 大于first_ppage_reported则lowest physical addr seen (pages) 等于first_ppage_reported |
61 | 如果highest physical addr seen (pages) 小于next_ppage减1则highest physical addr seen (pages) 等于next_ppage减1 |
65 | error等于Add a block range (and the corresponding page range) into this swapdev's* extent tree.* This function rather assumes that it is called in ascending page order. |
68 | xtent count 加等于error |
70 | 返回:0 |
名称 | 描述 |
---|---|
iomap_swapfile_activate_actor | 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. |
iomap_swapfile_activate | Iterate a swap file's iomaps to construct physical extents that can be* passed to the swapfile subsystem. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |