Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:58:19
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:migration_entry_wait

Proto:void migration_entry_wait(struct mm_struct *mm, pmd_t *pmd, unsigned long address)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
pmd_t *pmd
unsigned longaddress
342  ptl = pte_lockptr(mm, pmd)
343  ptep = pte_offset_map(pmd, address)
344  Something used the pte of a page under migration. We need to* get to the page and wait until migration is finished.* When we return from this function the fault will be retried.
Caller
NameDescribe
do_swap_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with pte unmapped and unlocked.* We return with the mmap_sem locked or unlocked in the same cases
hmm_vma_handle_pte