Defined in 3 files as a prototype:
- arch/powerpc/include/asm/sparsemem.h, line 17 (as a prototype)
- include/linux/numa.h, line 37 (as a prototype)
- include/linux/numa_memblks.h, line 56 (as a prototype)
Defined in 3 files as a macro:
- arch/powerpc/include/asm/sparsemem.h, line 18 (as a macro)
- arch/s390/include/asm/sparsemem.h, line 14 (as a macro)
- include/linux/numa_memblks.h, line 57 (as a macro)
Defined in 5 files as a function:
- arch/powerpc/mm/mem.c, line 58 (as a function)
- arch/s390/include/asm/sparsemem.h, line 10 (as a function)
- include/linux/numa.h, line 57 (as a function)
- mm/numa.c, line 44 (as a function)
- mm/numa_memblks.c, line 583 (as a function)
Referenced in 13 files:
- arch/powerpc/mm/mem.c, line 62
- drivers/acpi/acpi_memhotplug.c, line 184
- drivers/acpi/nfit/core.c, line 2647
- drivers/base/memory.c, line 590
- drivers/cxl/pmem.c, line 433
- drivers/dax/cxl.c, line 18
- drivers/hv/hv_balloon.c, line 728
- drivers/nvdimm/virtio_pmem.c, line 127
- drivers/virtio/virtio_mem.c, line 2861
- drivers/xen/balloon.c, line 287
- include/linux/numa.h, line 36
- mm/numa.c
- mm/numa_memblks.c, line 591
Smatch caller information:
drivers/hv/hv_balloon.c hv_mem_hot_add() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | start | 0,4096-18446744073709547520 |
| BIT_INFO | 0 | start | 0x0,0xfffffffffffff000 |
| HALF_LOCKED2 | &pool->lock |
drivers/acpi/acpi_memhotplug.c acpi_memory_enable_device() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | start | unit_byte |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &acpi_scan_lock |
drivers/dax/cxl.c cxl_dax_region_probe() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/nvdimm/virtio_pmem.c virtio_pmem_probe() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | start | 0-u64max |
| UNITS | 0 | start | unit_byte |
drivers/virtio/virtio_mem.c virtio_mem_init() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | start | 0-u64max |
| UNITS | 0 | start | unit_byte |
drivers/acpi/nfit/core.c acpi_nfit_register_region() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | start | unit_byte |
| LOCK2 | &acpi_desc->init_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct acpi_nfit_desc)->init_mutex |
drivers/xen/balloon.c reserve_additional_memory() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &balloon_mutex |
drivers/base/memory.c probe_store() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | start | 0-u64max |
| NO_OVERFLOW_SIMPLE | 0 | start | |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &device_hotplug_lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/cxl/pmem.c cxl_pmem_region_probe() -> memory_add_physaddr_to_nid()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &dev->mutex |