Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mm_find_pmd

Proto:pmd_t *mm_find_pmd(struct mm_struct *mm, unsigned long address)

Type:pmd_t

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddress
736  pmd_t * pmd = NULL
739  pgd = a shortcut to get a pgd_t in a given mm(mm, address)
740  If Not pgd_present( * pgd) Then Go to out
743  p4d = p4d_offset(pgd, address)
744  If Not p4d_present( * p4d) Then Go to out
747  pud = pud_offset(p4d, address)
748  If Not pud_present( * pud) Then Go to out
751  pmd = pmd_offset(pud, address)
757  pmde = pmd
758  The "volatile" is due to gcc bugs ()
759  If Not pmd_present(pmde) || pmd_trans_huge(pmde) Then pmd = NULL
761  out :
762  Return pmd
Caller
NameDescribe
replace_pageplace_page - replace page in vma by new ksm page*@vma: vma that holds the pte pointing to page*@page: the page we are replacing by kpage*@kpage: the ksm page we replace page by*@orig_pte: the original value of the pte
__collapse_huge_page_swapinBring missing pages in from swap, to complete THP collapse.* Only done if khugepaged_scan_pmd believes it is worthwhile.* Called and returns without pte mapped or spinlocks held,* but with mmap_sem held to protect against vma changes.
collapse_huge_page
khugepaged_scan_pmd