Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__get_locked_pte

Proto:pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl)

Type:pte_t

Parameter:

TypeParameterName
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  If Not p4d Then Return NULL
1422  pud = pud_alloc(mm, p4d, addr)
1423  If Not pud Then Return NULL
1425  pmd = pmd_alloc(mm, pud, addr)
1426  If Not pmd Then Return NULL
1429  VM_BUG_ON(pmd_trans_huge( * pmd))
1430  Return pte_alloc_map_lock(mm, pmd, addr, ptl)