Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_old_pmd

Proto:static pmd_t *get_old_pmd(struct mm_struct *mm, unsigned long addr)

Type:pmd_t

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
40  pgd = a shortcut to get a pgd_t in a given mm(mm, addr)
41  If pgd_none_or_clear_bad(pgd) Then Return NULL
44  p4d = p4d_offset(pgd, addr)
45  If p4d_none_or_clear_bad(p4d) Then Return NULL
48  pud = pud_offset(p4d, addr)
49  If pud_none_or_clear_bad(pud) Then Return NULL
52  pmd = pmd_offset(pud, addr)
53  If pmd_none( * pmd) Then Return NULL
56  Return pmd
Caller
NameDescribe
move_page_tables