函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:09:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static vm_fault_t do_wp_page(struct vm_fault *vmf)__releases(vmf->ptl)
返回类型:vm_fault_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_fault * | vmf |
2717 | vma等于Target VMA |
2728 | 如果Flags, see mm.h. 按位与VM_WRITE按位或VM_SHARED的值的值恒等于VM_WRITE按位或VM_SHARED的值则返回:Handle write page faults for VM_MIXEDMAP or VM_PFNMAP for a VM_SHARED* mapping |
2746 | get_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2747 | 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.) |
2753 | 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.) |
2754 | put_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2755 | 返回:0 |
2760 | reused等于reuse_ksm_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR)., Target VMA , Faulting virtual address ) |
2766 | 返回:VM_FAULT_WRITE |
2769 | 如果total_map_swapcount恒等于1则 |
2781 | 返回:VM_FAULT_WRITE |
2784 | 否则如果此条件成立可能性小(为编译器优化)((Flags, see mm.h. & (VM_WRITE | VM_SHARED)) == (VM_WRITE | VM_SHARED))则 |
2786 | 返回:wp_page_shared(vmf) |
2788 | copy : |
2792 | get_page(->fault handlers should return a* page here, unless VM_FAULT_NOPAGE* is set (which is also implied by* VM_FAULT_ERROR).) |
2794 | 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.) |
名称 | 描述 |
---|---|
do_swap_page | We enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases |
handle_pte_fault | These routines also need to handle stuff like marking pages dirty* and/or accessed for architectures that don't do it in hardware (most* RISC architectures) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |