Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ioremap_pmd_range

Proto:static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr, unsigned long end, phys_addr_t phys_addr, pgprot_t prot)

Type:int

Parameter:

TypeParameterName
pud_t *pud
unsigned longaddr
unsigned longend
phys_addr_tphys_addr
pgprot_tprot
109  pmd = pmd_alloc( & init_mm, pud, addr)
110  If Not pmd Then Return -ENOMEM
112  Do
113  next = pmd_addr_end(addr, end)
115  If ioremap_try_huge_pmd(pmd, addr, next, phys_addr, prot) Then Continue
118  If ioremap_pte_range(pmd, addr, next, phys_addr, prot) Then Return -ENOMEM
120  When pmd++, phys_addr += next - addr , addr = next , addr != end cycle
121  Return 0
Caller
NameDescribe
ioremap_pud_range