Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

mm/memory_hotplug.c mhp_init_memmap_on_memory() -> move_pfn_range_to_zone()

Type Parameter Key Value
PARAM_VALUE 0 zone 4096-ptr_max
PARAM_VALUE 1 start_pfn 0,32768-18446744073709518848
PARAM_VALUE 2 nr_pages 1-u64max
PARAM_VALUE 3 altmap 0
PARAM_VALUE 4 migratetype 0
PARAM_VALUE 5 isolate_pageblock 0
BUF_SIZE 0 zone (-1),32768,49152
BUF_SIZE 0 zone (-1),32768,49152
CAPPED_DATA 1 start_pfn 1
CAPPED_DATA 1 start_pfn 1
DATA_SOURCE 0 zone $2
DATA_SOURCE 1 start_pfn $0
DATA_SOURCE 2 nr_pages $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 start_pfn unit_page
UNITS 2 nr_pages unit_page
LOCK2 &dev->mutex
HALF_LOCKED2 &device->physical_node_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock
TYPE_LOCK (struct device)->mutex

mm/memory_hotplug.c online_pages() -> move_pfn_range_to_zone()

Type Parameter Key Value
PARAM_VALUE 0 zone 4096-ptr_max
PARAM_VALUE 1 start_pfn 0-s32max
PARAM_VALUE 2 nr_pages 1-16777216,18446744071562067969-u64max
PARAM_VALUE 3 altmap 0
PARAM_VALUE 4 migratetype 1
PARAM_VALUE 5 isolate_pageblock 1
BUF_SIZE 0 zone (-1),32768,49152
BUF_SIZE 0 zone (-1),32768,49152
CAPPED_DATA 1 start_pfn 1
CAPPED_DATA 1 start_pfn 1
DATA_SOURCE 0 zone $2
DATA_SOURCE 1 start_pfn $0
DATA_SOURCE 2 nr_pages $1
BIT_INFO 1 start_pfn 0x0,0x7ffffe00
BIT_INFO 1 start_pfn 0x0,0x7ffffe00
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 1 start_pfn unit_page
UNITS 2 nr_pages unit_page
LOCK2 &dev->mutex
HALF_LOCKED2 &device->physical_node_lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &device_hotplug_lock
TYPE_LOCK (struct device)->mutex

mm/memremap.c pagemap_range() -> move_pfn_range_to_zone()

Type Parameter Key Value
PARAM_VALUE 0 zone 4096-ptr_max
PARAM_VALUE 1 start_pfn 0-4503599627370495
PARAM_VALUE 2 nr_pages 0-4503599627370495
PARAM_VALUE 3 altmap 0,4096-ptr_max
PARAM_VALUE 3 altmap->base_pfn 0-4503599627370495
PARAM_VALUE 4 migratetype 1
PARAM_VALUE 5 isolate_pageblock 0
BUF_SIZE 0 zone 16384
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &mdevice->devmem_lock
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 global &list_lock