函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-27 17:32:24
Last Modify:2022-05-20 09:53:13 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep, spinlock_t *ptl)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
pte_t *ptep
spinlock_t *ptl
314  加自旋锁
315  pte等于ptep
316  如果非heck whether a pte points to a swap entry 则转到:out
319  entry等于Convert the arch-dependent pte representation of a swp_entry_t into an* arch-independent swp_entry_t.
320  如果非is_migration_entry(entry)则转到:out
323  page等于migration_entry_to_page(entry)
330  如果非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.则转到: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  返回
335  out :
336  pte_unmap_unlock(ptep, ptl)
调用者
名称描述
migration_entry_wait
migration_entry_wait_huge
follow_huge_pmd