Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory_hotplug.c Create Date:2022-07-28 15:56:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add this memory to iomem resource

Proto:static struct resource *register_memory_resource(u64 start, u64 size)

Type:struct resource

Parameter:

TypeParameterName
u64start
u64size
105  flags = I/O resource extended types | Driver has marked this resource busy
106  resource_name = "System RAM"
108  If start + size > max_mem_size Then Return ERR_PTR( - E2BIG)
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  If Not res Then
120  pr_debug("Unable to reserve System RAM region: %016llx->%016llx\n", start, start + size)
122  Return ERR_PTR( - EEXIST)
124  Return res
Caller
NameDescribe
__add_memoryquires device_hotplug_lock, see add_memory_resource()