Function report |
Source Code:mm\swapfile.c |
Create Date:2022-07-28 15:18:13 |
| Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int unuse_pte(struct vm_area_struct *vma, pmd_t *pmd, unsigned long addr, swp_entry_t entry, struct page *page)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct vm_area_struct * | vma | |
| pmd_t * | pmd | |
| unsigned long | addr | |
| swp_entry_t | entry | |
| struct page * | page |
| 1860 | ret = 1 |
| 1863 | page = ksm_might_need_to_copy(page, vma, addr) |
| 1864 | If Value for the false possibility is greater at compile time(!page) Then Return -ENOMEM |
| 1867 | If mem_cgroup_try_charge(page, The address space we belong to. , GFP_KERNEL, & memcg, false) Then |
| 1870 | Go to out_nolock |
| 1873 | pte = pte_offset_map_lock(The address space we belong to. , pmd, addr, & ptl) |
| 1887 | mem_cgroup_commit_charge(page, memcg, true, false) |
| 1888 | Else |
| 1898 | activate_page(page) |
| 1899 | out : |
| 1900 | pte_unmap_unlock(pte, ptl) |
| 1901 | out_nolock : |
| 1906 | Return ret |
| Name | Describe |
|---|---|
| unuse_pte_range |
| 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 |