Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:quires device_hotplug_lock, see add_memory_resource()

Proto:int __ref __add_memory(int nid, u64 start, u64 size)

Type:int

Parameter:

TypeParameterName
intnid
u64start
u64size
1116  res = add this memory to iomem resource
1117  If IS_ERR(res) Then Return PTR_ERR(res)
1120  ret = NOTE: The caller must call lock_device_hotplug() to serialize hotplug* and online/offline operations (triggered e.g. by sysfs).* we are OK calling __meminit stuff here - we have CONFIG_MEMORY_HOTPLUG
1121  If ret < 0 Then release_memory_resource(res)
1123  Return ret
Caller
NameDescribe
add_memory