Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ioremap_try_huge_pmd

Proto:static int ioremap_try_huge_pmd(pmd_t *pmd, unsigned long addr, unsigned long end, phys_addr_t phys_addr, pgprot_t prot)

Type:int

Parameter:

TypeParameterName
pmd_t *pmd
unsigned longaddr
unsigned longend
phys_addr_tphys_addr
pgprot_tprot
85  If Not ioremap_pmd_enabled() Then Return 0
88  If end - addr != PMD_SIZE Then Return 0
91  If Not IS_ALIGNED(addr, PMD_SIZE) Then Return 0
94  If Not IS_ALIGNED(phys_addr, PMD_SIZE) Then Return 0
97  If pmd_present( * pmd) && Not pmd_free_pte_page(pmd, addr) Then Return 0
100  Return pmd_set_huge(pmd, phys_addr, prot)
Caller
NameDescribe
ioremap_pmd_range