函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:quires device_hotplug_lock, see add_memory_resource()

函数原型:int __ref __add_memory(int nid, u64 start, u64 size)

返回类型:int

参数:

类型参数名称
intnid
u64start
u64size
1116  res等于add this memory to iomem resource
1117  如果是错误则返回:错误
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  如果ret小于0则release_memory_resource(res)
1123  返回:ret
调用者
名称描述
add_memory