Function report | 
Source Code:mm\page_vma_mapped.c | 
Create Date:2022-07-28 14:54:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:heck_pte - check if @pvmw->page is mapped at the @pvmw->pte* page_vma_mapped_walk() found a place where @pvmw->page is *potentially** mapped
Proto:static bool check_pte(struct page_vma_mapped_walk *pvmw)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct page_vma_mapped_walk * | pvmw | 
| 85 | If flags & Look for migarion entries rather than present PTEs Then | 
| 87 | If Not heck whether a pte points to a swap entry Then Return false | 
| 89 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 91 | If Not is_migration_entry(entry) Then Return false | 
| 94 | pfn = migration_entry_to_pfn(entry) | 
| 95 | Else if heck whether a pte points to a swap entry Then | 
| 99 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 100 | If Not is_device_private_entry(entry) Then Return false | 
| 103 | pfn = device_private_entry_to_pfn(entry) | 
| 104 | Else | 
| 105 | If Not pte_present( * pte) Then Return false | 
| 111 | Return pfn_in_hpage(page, pfn) | 
| Name | Describe | 
|---|---|
| page_vma_mapped_walk | page_vma_mapped_walk - check if @pvmw->page is mapped in @pvmw->vma at*@pvmw->address*@pvmw: pointer to struct page_vma_mapped_walk. page, vma, address and flags* must be set. pmd, pte and ptl must be NULL.* Returns true if the page is mapped in the vma | 
| 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  |