Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_resource

Proto:static void free_resource(struct resource *res)

Type:void

Parameter:

TypeParameterName
struct resource *res
152  If Not res Then Return
155  If Not PageSlab(virt_to_head_page(res)) Then
156  spin_lock( & bootmem_resource_lock)
157  sibling = For memory hotplug, there is no way to free resource entries allocated* by boot mem after the system is up. So for reusing the resource entry* we need to remember the resource.
158  For memory hotplug, there is no way to free resource entries allocated* by boot mem after the system is up. So for reusing the resource entry* we need to remember the resource. = res
159  spin_unlock( & bootmem_resource_lock)
160  Else
161  free previously allocated memory
Caller
NameDescribe
__reserve_region_with_split
__request_region__request_region - create a new busy resource region*@parent: parent resource descriptor*@start: resource start address*@n: resource region size*@name: reserving caller's ID string*@flags: IO resource flags
__release_region__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.