Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\resource.c Create Date:2022-07-28 09:05:32
Last Modify:2022-05-22 11:14:39 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__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.

Proto:void __release_region(struct resource *parent, resource_size_t start, resource_size_t n)

Type:void

Parameter:

TypeParameterName
struct resource *parent
resource_size_tstart
resource_size_tn
1197  p = child
1198  end = start + n - 1
1200  write_lock( & resource_lock)
1202  cycle
1203  res = p
1205  If Not res Then Break
1207  If start <= start && end >= end Then
1209  p = child
1210  Continue
1212  If start != start || end != end Then Break
1214  p = sibling
1218  free_resource(res)
1219  Return
1221  p = sibling
1224  write_unlock( & resource_lock)
1226  printk(warning conditions "Trying to free nonexistent resource <%016llx-%016llx>\n", (unsignedlonglong)start, (unsignedlonglong)end)
Caller
NameDescribe
devm_region_release
__devm_release_region