函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_resource

函数原型:static struct resource *alloc_resource(gfp_t flags)

返回类型:struct resource

参数:

类型参数名称
gfp_tflags
167  struct resource * res = NULL
169  加自旋锁
170  如果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.
171  res等于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.
172  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.等于sibling
174  自旋锁解锁
176  如果resmemset(res, 0, sizeof(structresource))
178  否则res等于分配内存并置零
181  返回:res
调用者
名称描述
__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