函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__release_region - release a previously reserved resource region*@parent: parent resource descriptor*@start: resource start address*@n: resource region size* The described resource region must match a currently busy region.

函数原型:void __release_region(struct resource *parent, resource_size_t start, resource_size_t n)

返回类型:void

参数:

类型参数名称
struct resource *parent
resource_size_tstart
resource_size_tn
1197  p等于child
1198  end等于startn减1
1200  write_lock( & resource_lock)
1202  循环
1203  res等于p
1205  如果非res退出
1207  如果start小于等于startend大于等于end
1208  如果非flags按位与Driver has marked this resource busy 的值则
1209  p等于child
1210  继续下一循环
1212  如果start不等于startend不等于end退出
1214  p等于sibling
1218  free_resource(res)
1219  返回
1221  p等于sibling
1224  write_unlock( & resource_lock)
1226  printk(warning conditions "Trying to free nonexistent resource <%016llx-%016llx>\n", (unsignedlonglong)start, (unsignedlonglong)end)
调用者
名称描述
devm_region_release
__devm_release_region