Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_new_pmd

Proto:static pmd_t *alloc_new_pmd(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr)

Type:pmd_t

Parameter:

TypeParameterName
struct mm_struct *mm
struct vm_area_struct *vma
unsigned longaddr
67  pgd = a shortcut to get a pgd_t in a given mm(mm, addr)
68  p4d = The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
69  If Not p4d Then Return NULL
71  pud = pud_alloc(mm, p4d, addr)
72  If Not pud Then Return NULL
75  pmd = pmd_alloc(mm, pud, addr)
76  If Not pmd Then Return NULL
79  VM_BUG_ON(pmd_trans_huge( * pmd))
81  Return pmd
Caller
NameDescribe
move_page_tables