Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ioremap_page_range

Proto:int ioremap_page_range(unsigned long addr, unsigned long end, phys_addr_t phys_addr, pgprot_t prot)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
unsigned longend
phys_addr_tphys_addr
pgprot_tprot
218  might_sleep()
219  BUG_ON(addr >= end)
221  start = addr
222  pgd = a shortcut which implies the use of the kernel's pgd, instead* of a process's(addr)
223  Do
224  next = When walking page tables, get the address of the next boundary,* or the end address of the range if that comes earlier. Although no* vma end wraps to 0, rounded up __boundary may wrap to 0 throughout.(addr, end)
225  err = ioremap_p4d_range(pgd, addr, next, phys_addr, prot)
226  If err Then Break
228  When pgd++, phys_addr += next - addr , addr = next , addr != end cycle
230  flush_cache_vmap(start, end)
232  Return err