函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hmm.c Create Date:2022-07-27 18:12:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hmm_vma_walk_hole_() - handle a range lacking valid pmd or pte(s)*@addr: range virtual start address (inclusive)*@end: range virtual end address (exclusive)*@fault: should we fault or not ?*@write_fault: write fault ?*@walk: mm_walk structure* Return: 0

函数原型:static int hmm_vma_walk_hole_(unsigned long addr, unsigned long end, bool fault, bool write_fault, struct mm_walk *walk)

返回类型:int

参数:

类型参数名称
unsigned longaddr
unsigned longend
boolfault
boolwrite_fault
struct mm_walk *walk
97  hmm_vma_walk等于private
98  range等于range
99  pfns等于pfns
102  last等于addr
103  i等于addrstart右移PAGE_SHIFT determines the page size
105  如果write_faultvma且非Flags, see mm.h. 按位与VM_WRITE的值则返回:负EPERM
108 addr小于end循环
109  pfns[i]等于values[ corresponding CPU page table entry is pte_none()]
110  如果faultwrite_fault
115  如果ret不等于负EBUSY则返回:ret
120  返回:如果faultwrite_fault则负EBUSY否则0
调用者
名称描述
hmm_vma_walk_hole
hmm_vma_handle_pmd
hmm_vma_handle_pte
hmm_vma_walk_hugetlb_entry