函数逻辑报告 |
Source Code:include\linux\mm.h |
Create Date:2022-07-27 06:44:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Do pte_mkwrite, but only if the vma says VM_WRITE. We do this when* servicing faults for write access. In the normal case, do always want* pte_mkwrite. But get_user_pages can cause write faults for mappings
函数原型:static inline pte_t maybe_mkwrite(pte_t pte, struct vm_area_struct *vma)
返回类型:pte_t
参数:
类型 | 参数 | 名称 |
---|---|---|
pte_t | pte | |
struct vm_area_struct * | vma |
817 | 如果此条件成立可能性大(为编译器优化)(Flags, see mm.h. & VM_WRITE)则pte等于pte_mkwrite(pte) |
819 | 返回:pte |
名称 | 描述 |
---|---|
insert_pfn | |
wp_page_reuse | Handle write page faults for pages that can be reused in the current vma* This can happen either due to the mapping being with the VM_SHARED flag,* or due to us being the last reference standing to the page |
wp_page_copy | Handle the case of a page which we actually need to copy to a new page.* Called with mmap_sem locked and the old page referenced, but* without the ptl held.* High level logic flow:* - Allocate a page, copy the content of the old page to the new one. |
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 |
alloc_set_pte | alloc_set_pte - setup new PTE entry for given page and add reverse page* mapping |
remove_migration_pte | Restore a potential migration pte to a working pte entry |
do_huge_pmd_wp_page_fallback | |
__split_huge_pmd_locked |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |