Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:hmm_pte_need_fault

Proto:static inline void hmm_pte_need_fault(const struct hmm_vma_walk *hmm_vma_walk, uint64_t pfns, uint64_t cpu_flags, bool *fault, bool *write_fault)

Type:void

Parameter:

TypeParameterName
const struct hmm_vma_walk *hmm_vma_walk
uint64_tpfns
uint64_tcpu_flags
bool *fault
bool *write_fault
127  range = range
129  If flags & Don't fault in missing PTEs, just snapshot the current state. Then Return
142  pfns = pfns & pfn_flags_mask | default_flags
145  If Not (pfns & flags[ pfn is valid. It has, at least, read permission.]) Then Return
148  If cpu_flags & flags[ private device memory (ZONE_DEVICE)] Then
152  * fault = true
154  Return
158  fault = Not (cpu_flags & flags[ pfn is valid. It has, at least, read permission.])
160  If pfns & flags[ CPU page table has write permission set] && Not (cpu_flags & flags[ CPU page table has write permission set]) Then
162  * write_fault = true
163  * fault = true
Caller
NameDescribe
hmm_range_need_fault
hmm_vma_handle_pte
hmm_vma_walk_hugetlb_entry