Function report |
Source Code:mm\memory.c |
Create Date:2022-07-28 14:42:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:wp_page_shared
Proto:static vm_fault_t wp_page_shared(struct vm_fault *vmf)__releases(vmf->ptl)
Type:vm_fault_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct vm_fault * | vmf |
2665 | vma = Target VMA |
2666 | ret = VM_FAULT_WRITE |
2668 | get_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2670 | If Function pointers to deal with this struct. && page_mkwrite Then |
2673 | 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.) |
2675 | If Value for the false possibility is greater at compile time(!tmp || (tmp & (VM_FAULT_ERROR | VM_FAULT_NOPAGE))) Then |
2677 | put_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2678 | Return tmp |
2681 | If Value for the false possibility is greater at compile time(tmp & (VM_FAULT_ERROR | VM_FAULT_NOPAGE)) Then |
2686 | Else |
2690 | ret |= Handle dirtying of a page in shared file mapping on a write fault.* The function expects the page to be locked and unlocks it. |
2691 | put_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2693 | Return ret |
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 |