函数逻辑报告 | 
Source Code:mm\huge_memory.c | 
Create Date:2022-07-27 17:37:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:total_mapcount
函数原型:int total_mapcount(struct page *page)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct page * | page | 
| 2584 | VM_BUG_ON_PAGE(PageTail(page), page) | 
| 2586 | 如果此条件成立可能性大(为编译器优化)(!PageCompound(page))则返回:atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)加1 | 
| 2589 | compound等于compound_mapcount(page) | 
| 2590 | 如果PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details.则返回:compound | 
| 2593 | 以i小于HPAGE_PMD_NR循环ret加等于atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.)加1 | 
| 2596 | 如果非PageAnon(page)则返回:ret减compound乘HPAGE_PMD_NR | 
| 2600 | 返回:ret | 
| 名称 | 描述 | 
|---|---|
| page_mapcount_is_zero | |
| can_split_huge_page | Racy check whether the huge page can be split | 
| split_huge_page_to_list | This function splits huge page into normal pages. @page can point to any* subpage of huge page to split. Split doesn't change the position of @page.* Only caller must hold pin on the @page, otherwise split fails with -EBUSY.* The huge page must be locked. | 
| page_referenced | page_referenced - test if the page was referenced*@page: the page to test*@is_locked: caller holds lock on the page*@memcg: target memory cgroup*@vm_flags: collect encountered vma->vm_flags who actually referenced the page* Quick test_and_clear_referenced | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |