函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_new_pmd

函数原型:static pmd_t *alloc_new_pmd(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long addr)

返回类型:pmd_t

参数:

类型参数名称
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  如果非p4d则返回:NULL
71  pud等于pud_alloc(mm, p4d, addr)
72  如果非pud则返回:NULL
75  pmd等于pmd_alloc(mm, pud, addr)
76  如果非pmd则返回:NULL
79  VM_BUG_ON(pmd_trans_huge( * pmd))
81  返回:pmd
调用者
名称描述
move_page_tables