Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:long hmm_range_fault(struct hmm_range *range, unsigned int flags)

Type:long

Parameter:

TypeParameterName
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  Do
682  If 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() Then Return -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  When ret == -EBUSY cycle
689  If ret Then Return ret
691  Return last - start >> PAGE_SHIFT determines the page size