函数逻辑报告 |
Source Code:mm\huge_memory.c |
Create Date:2022-07-27 17:36:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return true if we do MADV_FREE successfully on entire pmd page.* Otherwise, return false.
函数原型:bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, unsigned long next)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mmu_gather * | tlb | |
struct vm_area_struct * | vma | |
pmd_t * | pmd | |
unsigned long | addr | |
unsigned long | next |
1702 | bool ret = false |
1707 | 如果非ptl则转到:out_unlocked |
1711 | 如果is_huge_zero_pmd(orig_pmd)则转到:out |
1714 | 如果此条件成立可能性小(为编译器优化)(!pmd_present(orig_pmd))则 |
1715 | VM_BUG_ON(thp_migration_supported() && !is_pmd_migration_entry(orig_pmd)) |
1717 | 转到:out |
1720 | page等于Currently stuck as a macro due to indirect forward reference to* linux/mmzone.h's __section_mem_map_addr() definition:(orig_pmd) |
1725 | 如果page_mapcount(page)不等于1则转到:out |
1735 | 如果next减addr不等于HPAGE_PMD_SIZE则 |
1744 | 如果PageDirty(page)则ClearPageDirty(page) |
1749 | pmdp_invalidate(vma, addr, pmd) |
1751 | orig_pmd等于pmd_mkclean(orig_pmd) |
1753 | set_pmd_at(mm, addr, pmd, orig_pmd) |
1754 | tlb_remove_pmd_tlb_entry(tlb, pmd, addr) |
1758 | ret = true |
1759 | out : |
1760 | 自旋锁解锁 |
1761 | out_unlocked : |
1762 | 返回:ret |
名称 | 描述 |
---|---|
madvise_free_pte_range |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |