Function report | 
Source Code:mm\memory.c | 
Create Date:2022-07-28 14:41:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:maps a range of physical memory into the requested pages. the old* mappings are removed. any references to nonexistent pages results* in null mappings (currently treated as "copy-on-access")
Proto:static int remap_pte_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr, unsigned long end, unsigned long pfn, pgprot_t prot)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mm_struct * | mm | |
| pmd_t * | pmd | |
| unsigned long | addr | |
| unsigned long | end | |
| unsigned long | pfn | |
| pgprot_t | prot | 
| 1815 | err = 0 | 
| 1821 | Do | 
| 1823 | If Not pfn_modify_allowed(pfn, prot) Then | 
| 1827 | set_pte_at(mm, addr, pte, pte_mkspecial(pfn_pte(pfn, prot))) | 
| 1828 | pfn++ | 
| 1830 | arch_leave_lazy_mmu_mode() | 
| 1831 | pte_unmap_unlock(pte - 1, ptl) | 
| 1832 | Return err | 
| Name | Describe | 
|---|---|
| remap_pmd_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  |