| Function report | 
| Source Code: mm\mincore.c | Create Date:2022-07-28 14:44:43 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mincore_pte_range
Proto:static int mincore_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| pmd_t * | pmd | |
| unsigned long | addr | |
| unsigned long | end | |
| struct mm_walk * | walk | 
| 129 | nr = end - addr >> PAGE_SHIFT determines the page size | 
| 132 | If ptl Then | 
| 150 | Else if pte_present(pte) Then vec = 1 | 
| 152 | Else | 
| 153 | entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t. | 
| 155 | If non_swap_entry(entry) Then | 
| 160 | vec = 1 | 
| 161 | Else | 
| 171 | vec++ | 
| 173 | pte_unmap_unlock(ptep - 1, ptl) | 
| 174 | out : | 
| 176 | cond_resched() | 
| 177 | Return 0 | 
| 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 |