Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep, spinlock_t *ptl)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
pte_t *ptep
spinlock_t *ptl
314  spin_lock(ptl)
315  pte = ptep
316  If Not heck whether a pte points to a swap entry Then Go to out
319  entry = Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
320  If Not is_migration_entry(entry) Then Go to out
323  page = migration_entry_to_page(entry)
330  If Not Try to grab a ref unless the page has a refcount of zero, return false if* that is the case.* This can be called when MMU is off so it must not access* any of the virtual mappings. Then Go to out
332  pte_unmap_unlock(ptep, ptl)
333  put_and_wait_on_page_locked - Drop a reference and wait for it to be unlocked*@page: The page to wait for
334  Return
335  out :
336  pte_unmap_unlock(ptep, ptl)
Caller
NameDescribe
migration_entry_wait
migration_entry_wait_huge
follow_huge_pmd