函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hmm_range_fault - try to fault some address in a virtual address range*@range: range being faulted*@flags: HMM_FAULT_* flags* Return: the number of valid pages in range->pfns[] (from range start* address), which may be zero

函数原型:long hmm_range_fault(struct hmm_range *range, unsigned int flags)

返回类型:long

参数:

类型参数名称
struct hmm_range *range
unsigned intflags
670  struct hmm_vma_walk hmm_vma_walk = {range = range, last = start, flags = flags, }
675  mm等于mm
678  lockdep_assert_held( & mmap_sem)
680  循环
682  如果mmu_interval_check_retry - Test if a collision has occurred* This can be used in the critical section between mmu_interval_read_begin()* and mmu_interval_read_retry()则返回:负EBUSY
685  ret等于walk_page_range - walk page table with caller specific callbacks*@mm: mm_struct representing the target process of page table walk*@start: start address of the virtual address range*@end: end address of the virtual address range*@ops: operation to call
687 ret恒等于负EBUSY循环
689  如果ret则返回:ret
691  返回:laststart右移PAGE_SHIFT determines the page size