Function report | 
Source Code:mm\memory.c | 
Create Date:2022-07-28 14:41:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:insert_pfn
Proto:static vm_fault_t insert_pfn(struct vm_area_struct *vma, unsigned long addr, pfn_t pfn, pgprot_t prot, bool mkwrite)
Type:vm_fault_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_area_struct * | vma | |
| unsigned long | addr | |
| pfn_t | pfn | |
| pgprot_t | prot | |
| bool | mkwrite | 
| 1606 | pte = get_locked_pte(mm, addr, & ptl) | 
| 1607 | If Not pte Then Return VM_FAULT_OOM | 
| 1610 | If mkwrite Then | 
| 1621 | If pte_pfn( * pte) != pfn_t_to_pfn(pfn) Then | 
| 1622 | WARN_ON_ONCE(!is_zero_pfn(pte_pfn( * pte))) | 
| 1623 | Go to out_unlock | 
| 1625 | entry = pte_mkyoung( * pte) | 
| 1630 | Go to out_unlock | 
| 1634 | If pfn_t_devmap(pfn) Then entry = pte_mkdevmap(pfn_t_pte(pfn, prot)) | 
| 1636 | Else entry = pte_mkspecial(pfn_t_pte(pfn, prot)) | 
| 1639 | If mkwrite Then | 
| 1640 | entry = pte_mkyoung(entry) | 
| 1644 | set_pte_at(mm, addr, pte, entry) | 
| 1647 | out_unlock : | 
| 1648 | pte_unmap_unlock(pte, ptl) | 
| 1649 | Return VM_FAULT_NOPAGE | 
| Name | Describe | 
|---|---|
| vmf_insert_pfn_prot | vmf_insert_pfn_prot - insert single pfn into user vma with specified pgprot*@vma: user vma to map to*@addr: target user address of this page*@pfn: source kernel pfn*@pgprot: pgprot flags for the inserted page* This is exactly like vmf_insert_pfn(), except | 
| __vm_insert_mixed | 
| 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  |