| Function report | 
| Source Code: mm\gup.c | Create Date:2022-07-28 14:34:21 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:follow_page_pte
Proto:static struct page *follow_page_pte(struct vm_area_struct *vma, unsigned long address, pmd_t *pmd, unsigned int flags, struct dev_pagemap **pgmap)
Type:struct page
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_area_struct * | vma | |
| unsigned long | address | |
| pmd_t * | pmd | |
| unsigned int | flags | |
| struct dev_pagemap ** | pgmap | 
| 182 | retry : | 
| 183 | If Value for the false possibility is greater at compile time(pmd_bad( * pmd)) Then Return no_page_table(vma, flags) | 
| 188 | If Not pte_present(pte) Then | 
| 195 | If Value is more likely to compile time(!(flags & wait for page to replace migration entry )) Then Go to no_page | 
| 199 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 200 | If Not is_migration_entry(entry) Then Go to no_page | 
| 202 | pte_unmap_unlock(ptep, ptl) | 
| 203 | migration_entry_wait(mm, pmd, address) | 
| 204 | Go to retry | 
| 209 | pte_unmap_unlock(ptep, ptl) | 
| 210 | Return NULL | 
| 213 | page = vm_normal_page(vma, address, pte) | 
| 214 | If Not page && pte_devmap(pte) && flags & do get_page on page Then | 
| 224 | Else if Value for the false possibility is greater at compile time(!page) Then | 
| 225 | If flags & give error on hole if it would be zero Then | 
| 231 | If is_zero_pfn(pte_pfn(pte)) Then | 
| 233 | Else | 
| 255 | If flags & do get_page on page Then | 
| 261 | If flags & mark page accessed Then | 
| 262 | If flags & check pte is writable && Not The following only work if pte_present() is true.* Undefined behaviour if not.. && Not PageDirty(page) Then Dirty a page | 
| 272 | If flags & lock present pages && Flags, see mm.h. & VM_LOCKED Then | 
| 274 | If PageTransCompound returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved. Then Go to out | 
| 287 | lru_add_drain() | 
| 298 | out : | 
| 299 | pte_unmap_unlock(ptep, ptl) | 
| 300 | Return page | 
| 301 | no_page : | 
| 302 | pte_unmap_unlock(ptep, ptl) | 
| 305 | Return no_page_table(vma, flags) | 
| Name | Describe | 
|---|---|
| follow_pmd_mask | 
| 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 |