函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__release_resource

函数原型:static int __release_resource(struct resource *old, bool release_child)

返回类型:int

参数:

类型参数名称
struct resource *old
boolrelease_child
217  p等于child
218  循环
219  tmp等于p
220  如果非tmp退出
222  如果tmp恒等于old
223  如果release_child或非child
224  p等于sibling
225  否则
226  循环
227  parent等于parent
228  如果非sibling退出
231  p等于child
232  sibling等于sibling
234  parent = NULL
235  返回:0
237  p等于sibling
239  返回:负EINVAL
调用者
名称描述
release_resourcelease_resource - release a previously reserved resource*@old: resource pointer
reallocate_resourceallocate_resource - allocate a slot in the resource tree given range & alignment
remove_resourcemove_resource - Remove a resource in the resource tree*@old: resource to remove* Returns 0 on success, -EINVAL if the resource is not valid