函数逻辑报告 |
Source Code:mm\rmap.c |
Create Date:2022-07-27 16:26:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:page_add_new_anon_rmap - add pte mapping to a new anonymous page*@page: the page to add the mapping to*@vma: the vm area in which the mapping is added*@address: the user virtual address mapped*@compound: charge the page as compound or small page
函数原型:void page_add_new_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address, bool compound)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct page * | page | |
struct vm_area_struct * | vma | |
unsigned long | address | |
bool | compound |
1173 | nr等于如果compound则hpage_nr_pages(page)否则1 |
1175 | VM_BUG_ON_VMA(address < Our start address within vm_mm. || address >= The first byte after our end addresswithin vm_mm. , vma) |
1176 | __SetPageSwapBacked(page) |
1177 | 如果compound则 |
1180 | atomic_set(compound_mapcount_ptr(page), 0) |
1182 | 否则 |
名称 | 描述 |
---|---|
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_anonymous_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 mmap_sem still held, but pte unmapped and unlocked. |
alloc_set_pte | alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping |
unuse_pte | No need to decide whether this PTE shares the swap entry with others,* just let do_wp_page work it out if a write is requested later - to* force COW, vm_page_prot omits write permission from any private vma. |
__do_huge_pmd_anonymous_page | |
do_huge_pmd_wp_page_fallback | |
do_huge_pmd_wp_page | |
collapse_huge_page | |
mcopy_atomic_pte | |
__replace_page | __replace_page - replace page in vma by new page |
wp_page_copy | Handle the case of a page which we actually need to copy to a new page.* Called with mmap_sem locked and the old page referenced, but* without the ptl held.* High level logic flow:* - Allocate a page, copy the content of the old page to the new one. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |