函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hmm_pte_need_fault

函数原型: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)

返回类型:void

参数:

类型参数名称
const struct hmm_vma_walk *hmm_vma_walk
uint64_tpfns
uint64_tcpu_flags
bool *fault
bool *write_fault
127  range等于range
129  如果flags按位与Don't fault in missing PTEs, just snapshot the current state. 则返回
142  pfns等于pfns按位与pfn_flags_mask按位或default_flags
145  如果非pfns按位与flags[ pfn is valid. It has, at least, read permission.]的值则返回
148  如果cpu_flags按位与flags[ private device memory (ZONE_DEVICE)]则
152  * fault = true
154  返回
158  fault等于非cpu_flags按位与flags[ pfn is valid. It has, at least, read permission.]的值
160  如果pfns按位与flags[ CPU page table has write permission set]且非cpu_flags按位与flags[ CPU page table has write permission set]的值则
162  * write_fault = true
163  * fault = true
调用者
名称描述
hmm_range_need_fault
hmm_vma_handle_pte
hmm_vma_walk_hugetlb_entry