函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the conflict entry if you can't request it

函数原型:static struct resource *__request_resource(struct resource *root, struct resource *new)

返回类型:struct resource

参数:

类型参数名称
struct resource *root
struct resource *new
187  start等于start
188  end等于end
191  如果end小于start则返回:root
193  如果start小于start则返回:root
195  如果end大于end则返回:root
197  p等于child
198  循环
199  tmp等于p
200  如果非tmpstart大于end
201  sibling等于tmp
202  p等于new
203  parent等于root
204  返回:NULL
206  p等于sibling
207  如果end小于start则继续下一循环
209  返回:tmp
调用者
名称描述
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