函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_resource

函数原型:static void free_resource(struct resource *res)

返回类型:void

参数:

类型参数名称
struct resource *res
152  如果非res则返回
155  如果非PageSlab(virt_to_head_page(res))则
156  加自旋锁
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  自旋锁解锁
160  否则
161  释放内存
调用者
名称描述
__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.