函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\ioremap.c Create Date:2022-07-27 07:13:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ioremap_page_range

函数原型:int ioremap_page_range(unsigned long addr, unsigned long end, phys_addr_t phys_addr, pgprot_t prot)

返回类型:int

参数:

类型参数名称
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  循环
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  如果err退出
228 pgd自加, phys_addr加等于nextaddr, addr等于next, addr不等于end循环
230  flush_cache_vmap(start, end)
232  返回:err