Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_hotplug_memory_range

Proto:static int check_hotplug_memory_range(u64 start, u64 size)

Type:int

Parameter:

TypeParameterName
u64start
u64size
1013  If Not size || Not IS_ALIGNED(start, memory_block_size_bytes()) || Not IS_ALIGNED(size, memory_block_size_bytes()) Then
1015  pr_err("Block size [%#lx] unaligned hotplug range: start %#llx, size %#llx", memory_block_size_bytes(), start, size)
1017  Return -EINVAL
1020  Return 0
Caller
NameDescribe
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