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_pte_range

Proto:static int ioremap_pte_range(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
69  pfn = phys_addr >> PAGE_SHIFT determines the page size
70  pte = pte_alloc_kernel(pmd, addr)
71  If Not pte Then Return -ENOMEM
73  Do
74  BUG_ON(!pte_none( * pte))
75  set_pte_at( & init_mm, addr, pte, pfn_pte(pfn, prot))
76  pfn++
77  When pte++, addr += PAGE_SIZE , addr != end cycle
78  Return 0
Caller
NameDescribe
ioremap_pmd_range