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 offline_pages() -> adjust_present_page_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | nr_pages | s64min-(-1),1-s64max |
| DATA_SOURCE | 1 | group | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | page | 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() -> adjust_present_page_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | nr_pages | (-2147483647)-(-1),1-16777216 |
| DATA_SOURCE | 1 | group | $3 |
| DATA_SOURCE | 2 | nr_pages | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | page | 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 |
drivers/base/memory.c memory_block_offline() -> adjust_present_page_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | nr_pages | s64min-(-1),1-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &device->physical_node_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/base/memory.c memory_block_offline() -> adjust_present_page_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | group | 0,4096-ptr_max |
| PARAM_VALUE | 2 | nr_pages | s64min-(-1),1-s64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &device->physical_node_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/base/memory.c memory_block_online() -> adjust_present_page_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | group | 0,4096-ptr_max |
| PARAM_VALUE | 2 | nr_pages | 1-s32max |
| CAPPED_DATA | 2 | nr_pages | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| HALF_LOCKED2 | &device->physical_node_lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &device_hotplug_lock | ||
| TYPE_LOCK | (struct device)->mutex |