函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory_hotplug.c Create Date:2022-07-27 17:30:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add this memory to iomem resource

函数原型:static struct resource *register_memory_resource(u64 start, u64 size)

返回类型:struct resource

参数:

类型参数名称
u64start
u64size
105  flags等于I/O resource extended types 按位或Driver has marked this resource busy
106  resource_name等于"System RAM"
108  如果startsize大于max_mem_size则返回:错误号
116  res等于__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
119  如果非res
120  pr_debug("Unable to reserve System RAM region: %016llx->%016llx\n", start, start + size)
122  返回:错误号
124  返回:res
调用者
名称描述
__add_memoryquires device_hotplug_lock, see add_memory_resource()