Function report | 
Source Code:mm\rmap.c | 
Create Date:2022-07-28 14:56:35 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:void page_add_new_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address, bool compound)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page * | page | |
| struct vm_area_struct * | vma | |
| unsigned long | address | |
| bool | compound | 
| 1173 | nr = If compound Then hpage_nr_pages(page) Else 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 | If compound Then | 
| 1180 | atomic_set(compound_mapcount_ptr(page), 0) | 
| 1182 | Else | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |