Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 4 files:
- include/linux/numa.h, line 69
- kernel/sched/fair.c, line 3807
- kernel/sched/topology.c, line 2604
- mm/mempolicy.c, line 308
Smatch caller information:
drivers/pci/controller/pci-hyperv.c hv_pci_assign_numa_node() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| CAPPED_DATA | 0 | node | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hbus->state_lock | ||
| LOCK2 | global &pci_rescan_remove_lock | ||
| TYPE_LOCK | (struct hv_pcibus_device)->state_lock |
drivers/nvdimm/e820.c e820_register_one() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | node | r phys_to_target_node |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/sched/build_utility.c sched_numa_find_nth_cpu() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | node | s32min-(-2),0-s32max |
| PARAM_VALUE | 1 | state | 4 |
| DATA_SOURCE | 0 | node | $2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
kernel/sched/fair.c task_numa_placement() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | node | (-1)-64 |
| PARAM_VALUE | 1 | state | 4 |
| CAPPED_DATA | 0 | node | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | group_lock | ||
| HALF_LOCKED2 | irq |
drivers/dax/hmem/hmem.c __hmem_register_device() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | node | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hmem_resource_lock | ||
| HALF_LOCKED2 | &host->mutex |
arch/x86/kernel/cpu/sgx/main.c sgx_page_cache_init() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
drivers/acpi/nfit/core.c pxm_to_online_node() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | node | r pxm_to_node |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &acpi_desc->init_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct acpi_nfit_desc)->init_mutex |
drivers/nvdimm/ramdax.c ramdax_register_region() -> numa_nearest_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | state | 1 |
| DATA_SOURCE | 0 | node | r phys_to_target_node |
| RX_PATH | |||
| TASK_NOT_RUNNING |