函数逻辑报告

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_p4d_range

函数原型:static inline int ioremap_p4d_range(pgd_t *pgd, unsigned long addr, unsigned long end, phys_addr_t phys_addr, pgprot_t prot)

返回类型:int

参数:

类型参数名称
pgd_t *pgd
unsigned longaddr
unsigned longend
phys_addr_tphys_addr
pgprot_tprot
195  p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
196  如果非p4d则返回:负ENOMEM
198  循环
199  next等于p4d_addr_end(addr, end)
201  如果ioremap_try_huge_p4d(p4d, addr, next, phys_addr, prot)则继续下一循环
204  如果ioremap_pud_range(p4d, addr, next, phys_addr, prot)则返回:负ENOMEM
206 p4d自加, phys_addr加等于nextaddr, addr等于next, addr不等于end循环
207  返回:0
调用者
名称描述
ioremap_page_range