函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_hotplug_memory_range

函数原型:static int check_hotplug_memory_range(u64 start, u64 size)

返回类型:int

参数:

类型参数名称
u64start
u64size
1013  如果非size或非IS_ALIGNED(start, memory_block_size_bytes())或非IS_ALIGNED(size, memory_block_size_bytes())则
1015  打印错误信息("Block size [%#lx] unaligned hotplug range: start %#llx, size %#llx", memory_block_size_bytes(), start, size)
1017  返回:负EINVAL
1020  返回:0
调用者
名称描述
add_memory_resourceNOTE: 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