函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:48:29 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:We can write to an anon page without COW if there are no other references* to it. And as a side-effect, free up its swap: because the old content* on disk will never be read, and seeking back there to write new content
函数原型:bool reuse_swap_page(struct page *page, int *total_map_swapcount)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct page * | page | |
| int * | total_map_swapcount |
| 1657 | VM_BUG_ON_PAGE(!PageLocked(page), page) |
| 1660 | count等于page_trans_huge_map_swapcount(page, & total_mapcount, & total_swapcount) |
| 1669 | page等于compound_head(page) |
| 1671 | SetPageDirty(page) |
| 1672 | 否则 |
| 1676 | val等于page_private(page) |
| 1677 | p等于swap_info_get(entry) |
| 1678 | 如果SWP_USED etc: see above 按位与SWP_STABLE_WRITES则 |
| 1679 | 自旋锁解锁 |
| 1680 | 返回:false |
| 1682 | 自旋锁解锁 |
| 1686 | 返回:count小于等于1 |
| 名称 | 描述 |
|---|---|
| do_wp_page | This routine handles present pages, when users try to write* to a shared page. It is done by copying the page to a new address* and decrementing the shared-page counter for the old page.* Note that this routine assumes that the protection checks have been |
| do_swap_page | We enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases |
| do_huge_pmd_wp_page | |
| __collapse_huge_page_isolate |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |