Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hmm_vma_walk_test

Proto:static int hmm_vma_walk_test(unsigned long start, unsigned long end, struct mm_walk *walk)

Type:int

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
struct mm_walk *walk
592  hmm_vma_walk = private
593  range = range
594  vma = vma
600  If Flags, see mm.h. & ( Memory mapped I/O or similar | Page-ranges managed without "struct page", just pure PFN | Can contain "struct page" and pure PFN pages ) Then Return -EFAULT
608  If Not (Flags, see mm.h. & currently active flags ) Then
615  hmm_range_need_fault(hmm_vma_walk, pfns + ((start - start) >> PAGE_SHIFT determines the page size ), (end - start) >> PAGE_SHIFT determines the page size , 0, & fault, & write_fault)
619  If fault || write_fault Then Return -EFAULT
622  hmm_pfns_fill(start, end, range, corresponding CPU page table entry is pte_none())
623  last = end
626  Return 1
629  Return 0