Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__release_resource

Proto:static int __release_resource(struct resource *old, bool release_child)

Type:int

Parameter:

TypeParameterName
struct resource *old
boolrelease_child
217  p = child
218  cycle
219  tmp = p
220  If Not tmp Then Break
222  If tmp == old Then
223  If release_child || Not child Then
224  p = sibling
225  Else
226  cycle
227  parent = parent
228  If Not sibling Then Break
231  p = child
232  sibling = sibling
234  parent = NULL
235  Return 0
237  p = sibling
239  Return -EINVAL
Caller
NameDescribe
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