函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hmm_range_need_fault

函数原型:static void hmm_range_need_fault(const struct hmm_vma_walk *hmm_vma_walk, const uint64_t *pfns, unsigned long npages, uint64_t cpu_flags, bool *fault, bool *write_fault)

返回类型:void

参数:

类型参数名称
const struct hmm_vma_walk *hmm_vma_walk
const uint64_t *pfns
unsigned longnpages
uint64_tcpu_flags
bool *fault
bool *write_fault
174  如果flags按位与Don't fault in missing PTEs, just snapshot the current state.
175  * fault = * write_fault = false
176  返回
179  * fault = * write_fault = false
180 i小于npages循环
181  hmm_pte_need_fault(hmm_vma_walk, pfns[i], cpu_flags, fault, write_fault)
183  如果write_fault则返回
调用者
名称描述
hmm_vma_walk_hole
hmm_vma_handle_pmd
hmm_vma_walk_pmd
hmm_vma_walk_test