函数逻辑报告 |
Source Code:mm\memory.c |
Create Date:2022-07-27 16:10:59 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:By the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().
函数原型:static vm_fault_t __handle_mm_fault(struct vm_area_struct *vma, unsigned long address, unsigned int flags)
返回类型:vm_fault_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | address | |
unsigned int | flags |
4063 | struct vm_fault vmf = {Target VMA = vma, Faulting virtual address = address & PAGE_MASK, FAULT_FLAG_xxx flags = flags, Logical page offset based on vma = linear_page_index(vma, address), gfp mask to be used for allocations = __get_fault_gfp_mask(vma), } |
4070 | dirty等于flags按位与Fault was a write access |
4077 | p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed. |
4078 | 如果非p4d则返回:VM_FAULT_OOM |
4084 | retry_pud : |
4086 | ret等于create_huge_pud( & vmf) |
4087 | 如果非ret按位与VM_FAULT_FALLBACK的值则返回:ret |
4089 | 否则 |
4093 | 如果pud_trans_huge(orig_pud)或pud_devmap(orig_pud)则 |
4098 | ret等于wp_huge_pud( & vmf, orig_pud) |
4099 | 如果非ret按位与VM_FAULT_FALLBACK的值则返回:ret |
4101 | 否则 |
4102 | huge_pud_set_accessed( & vmf, orig_pud) |
4103 | 返回:0 |
4108 | Pointer to pmd entry matching* the 'address' 等于pmd_alloc(mm, Pointer to pud entry matching* the 'address', address) |
4113 | 如果See pmd_trans_unstable for discussion. 则转到:retry_pud |
4117 | ret等于create_huge_pmd( & vmf) |
4118 | 如果非ret按位与VM_FAULT_FALLBACK的值则返回:ret |
4120 | 否则 |
4124 | 如果此条件成立可能性小(为编译器优化)(is_swap_pmd(orig_pmd))则 |
4125 | VM_BUG_ON(thp_migration_supported() && !is_pmd_migration_entry(orig_pmd)) |
4127 | 如果is_pmd_migration_entry(orig_pmd)则pmd_migration_entry_wait(mm, Pointer to pmd entry matching* the 'address' ) |
4129 | 返回:0 |
4131 | 如果pmd_trans_huge(orig_pmd)或pmd_devmap(orig_pmd)则 |
4132 | 如果pmd_protnone(orig_pmd)且vma_is_accessible(vma)则返回:NUMA hinting page fault entry point for trans huge pmds |
4137 | 如果非ret按位与VM_FAULT_FALLBACK的值则返回:ret |
4139 | 否则 |
4140 | huge_pmd_set_accessed( & vmf, orig_pmd) |
4141 | 返回:0 |
名称 | 描述 |
---|---|
handle_mm_fault | By the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry(). |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |