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 __add_memory() -> add_memory_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->parent | 4096-ptr_max |
| PARAM_VALUE | 1 | res->parent->child | 4096-ptr_max |
| PARAM_VALUE | 1 | res->sibling | 0,4096-ptr_max |
| PARAM_VALUE | 1 | res->sibling->start | 1-u64max |
| PARAM_VALUE | 2 | mhp_flags | 0-1,6 |
| BUF_SIZE | 1 | res | 64 |
| DATA_SOURCE | 0 | nid | $0 |
| DATA_SOURCE | 1 | res | r register_memory_resource |
| DATA_SOURCE | 2 | mhp_flags | $3 |
| HARD_MAX | 2 | mhp_flags | 6 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &device_hotplug_lock |
drivers/xen/balloon.c reserve_additional_memory() -> add_memory_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | res | 4096-ptr_max |
| PARAM_VALUE | 1 | res->parent->child | 4096-ptr_max |
| PARAM_VALUE | 1 | res->sibling->start | 1-u64max |
| PARAM_VALUE | 2 | mhp_flags | 1 |
| BUF_SIZE | 1 | res | 64 |
| CAPPED_DATA | 1 | res | 1 |
| DATA_SOURCE | 0 | nid | r memory_add_physaddr_to_nid |
| DATA_SOURCE | 1 | res | r additional_memory_resource |
| TERMINATED | 1 | res->name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &device_hotplug_lock |