函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\rmap.c Create Date:2022-07-27 16:25:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mm_find_pmd

函数原型:pmd_t *mm_find_pmd(struct mm_struct *mm, unsigned long address)

返回类型:pmd_t

参数:

类型参数名称
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  如果非pgd_present( * pgd)则转到:out
743  p4d等于p4d_offset(pgd, address)
744  如果非p4d_present( * p4d)则转到:out
747  pud等于pud_offset(p4d, address)
748  如果非pud_present( * pud)则转到:out
751  pmd等于pmd_offset(pud, address)
757  pmde等于pmd
758  The "volatile" is due to gcc bugs ()
759  如果非pmd_present(pmde)或pmd_trans_huge(pmde)则pmd = NULL
761  out :
762  返回:pmd
调用者
名称描述
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