Function report | 
Source Code:mm\memory.c | 
Create Date:2022-07-28 14:42:09 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Handle write page faults for VM_MIXEDMAP or VM_PFNMAP for a VM_SHARED* mapping
Proto:static vm_fault_t wp_pfn_shared(struct vm_fault *vmf)
Type:vm_fault_t
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_fault * | vmf | 
| 2646 | vma = Target VMA | 
| 2648 | If Function pointers to deal with this struct. && pfn_mkwrite Then | 
| 2651 | pte_unmap_unlock(Pointer to pte entry matching* the 'address'. NULL if the page* table hasn't been allocated., Page table lock.* Protects pte page table if 'pte'* is not NULL, otherwise pmd.) | 
| 2653 | ret = pfn_mkwrite(vmf) | 
| 2654 | If ret & (VM_FAULT_ERROR | VM_FAULT_NOPAGE) Then Return ret | 
| 2659 | Return VM_FAULT_WRITE | 
| Name | Describe | 
|---|---|
| do_wp_page | This routine handles present pages, when users try to write* to a shared page. It is done by copying the page to a new address* and decrementing the shared-page counter for the old page.* Note that this routine assumes that the protection checks have been | 
| 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  |