Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return the conflict entry if you can't request it

Proto:static struct resource *__request_resource(struct resource *root, struct resource *new)

Type:struct resource

Parameter:

TypeParameterName
struct resource *root
struct resource *new
187  start = start
188  end = end
191  If end < start Then Return root
193  If start < start Then Return root
195  If end > end Then Return root
197  p = child
198  cycle
199  tmp = p
200  If Not tmp || start > end Then
201  sibling = tmp
202  p = new
203  parent = root
204  Return NULL
206  p = sibling
207  If end < start Then Continue
209  Return tmp
Caller
NameDescribe
request_resource_conflictquest_resource_conflict - request and reserve an I/O or memory resource*@root: root resource descriptor*@new: resource descriptor desired by caller* Returns 0 for success, conflict resource on error.
reallocate_resourceallocate_resource - allocate a slot in the resource tree given range & alignment
allocate_resourceallocate_resource - allocate empty slot in the resource tree given range & alignment
__insert_resourceInsert a resource into the resource tree. If successful, return NULL,* otherwise return the conflicting resource (compare to __request_resource())
__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