Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hmm.c Create Date:2022-07-28 16:36:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int hmm_vma_walk_hole_(unsigned long addr, unsigned long end, bool fault, bool write_fault, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
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 = addr - start >> PAGE_SHIFT determines the page size
105  If write_fault && vma && Not (Flags, see mm.h. & VM_WRITE) Then Return -EPERM
108  When addr < end cycle
109  pfns[i] = values[ corresponding CPU page table entry is pte_none()]
110  If fault || write_fault Then
115  If ret != -EBUSY Then Return ret
120  Return If fault || write_fault Then -EBUSY Else 0
Caller
NameDescribe
hmm_vma_walk_hole
hmm_vma_handle_pmd
hmm_vma_handle_pte
hmm_vma_walk_hugetlb_entry