函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__get_locked_pte

函数原型:pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)

返回类型:pte_t

参数:

类型参数名称
struct mm_struct *mm
unsigned longaddr
spinlock_t **ptl
1418  pgd等于a shortcut to get a pgd_t in a given mm(mm, addr)
1419  p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
1420  如果非p4d则返回:NULL
1422  pud等于pud_alloc(mm, p4d, addr)
1423  如果非pud则返回:NULL
1425  pmd等于pmd_alloc(mm, pud, addr)
1426  如果非pmd则返回:NULL
1429  VM_BUG_ON(pmd_trans_huge( * pmd))
1430  返回:pte_alloc_map_lock(mm, pmd, addr, ptl)