函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-27 10:05:28
Last Modify:2022-05-22 11:14:39 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Check if the requested addr and size spans more than any slot in the* iomem resource tree.

函数原型:int iomem_map_sanity_check(resource_size_t addr, unsigned long size)

返回类型:int

参数:

类型参数名称
resource_size_taddr
unsigned longsize
1534  p等于iomem_resource
1535  err等于0
1538  read_lock( & resource_lock)
1539 p循环
1544  如果start大于等于addrsize则继续下一循环
1546  如果end小于addr则继续下一循环
1548  如果PFN_DOWN(start)小于等于PFN_DOWN(addr)且PFN_DOWN(end)大于等于PFN_DOWN(addr + size - 1)则继续下一循环
1557  如果flags按位与Driver has marked this resource busy 则继续下一循环
1560  printk(warning conditions "resource sanity check: requesting [mem %#010llx-%#010llx], which spans more than %s %pR\n", (unsignedlonglong)addr, (unsignedlonglong)(addr + size - 1), name, p)
1564  err等于负1
1565  退出
1567  read_unlock( & resource_lock)
1569  返回:err