函数逻辑报告 |
Source Code:mm\huge_memory.c |
Create Date:2022-07-27 17:37:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This calculates accurately how many mappings a transparent hugepage* has (unlike page_mapcount() which isn't fully accurate)
函数原型:int page_trans_huge_mapcount(struct page *page, int *total_mapcount)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
int * | total_mapcount |
2632 | VM_BUG_ON_PAGE(PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details., page) |
2635 | mapcount等于atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)加1 |
2636 | 如果total_mapcount则total_mapcount等于mapcount |
2638 | 返回:mapcount |
2641 | page等于compound_head(page) |
2643 | _total_mapcount等于ret等于0 |
2644 | 以i小于HPAGE_PMD_NR循环 |
2645 | mapcount等于atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)加1 |
2647 | _total_mapcount加等于mapcount |
2650 | ret减等于1 |
2651 | _total_mapcount减等于HPAGE_PMD_NR |
2653 | mapcount等于compound_mapcount(page) |
2655 | _total_mapcount加等于mapcount |
2658 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |