Defined in 2 files as a function:
- include/linux/nodemask.h, line 430 (as a function)
- include/linux/nodemask.h, line 476 (as a function)
Referenced in 3 files:
Smatch caller information:
kernel/futex/core.c futex_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
kernel/futex/core.c futex_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
kernel/smp.c smp_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
mm/kfence/core.c __kfence_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/pci/controller/pci-hyperv.c hv_pci_assign_numa_node() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hbus->state_lock | ||
| LOCK2 | global &pci_rescan_remove_lock | ||
| TYPE_LOCK | (struct hv_pcibus_device)->state_lock |
mm/memory_hotplug.c node_set_offline() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &device_hotplug_lock |
mm/memory_hotplug.c node_set_online() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &device_hotplug_lock |
mm/mm_init.c fixup_hashdist() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 3 |
| LOCK2 | irq |
mm/mm_init.c page_alloc_init_late() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 3 |
mm/hugetlb.c hugetlb_bootmem_struct_page_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 3 |
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c amdgpu_amdkfd_xcp_memory_size() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &p->mutex | ||
| HALF_LOCKED2 | global &kfd_mem_limit.mem_limit_lock |
drivers/cpufreq/powernow-k8.c powernowk8_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c kfd_create_crat_image_virtual() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c kfd_fill_gpu_direct_io_link_to_cpu() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &topology_lock | ||
| HALF_LOCKED2 | &xcp_mgr->xcp_lock |
drivers/crypto/virtio/virtio_crypto_core.c virtcrypto_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm.c dm_get_numa_node() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
drivers/infiniband/hw/hfi1/affinity.c node_affinity_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
drivers/infiniband/hw/hfi1/affinity.c node_affinity_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
drivers/scsi/lpfc/lpfc_init.c lpfc_create_port() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/time/timer_migration.c tmigr_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
arch/x86/mm/numa.c node_set_online() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| LOCK2 | irq |
net/ipv4/inet_hashtables.c inet_ehash_locks_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &pernet_ops_rwsem |
net/ipv4/inet_hashtables.c inet_ehash_locks_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &pernet_ops_rwsem |
arch/x86/kernel/smpboot.c announce_cpu() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &cpuhp_state_mutex | ||
| HALF_LOCKED2 | irq |
drivers/crypto/intel/qat/qat_c62x/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
arch/x86/kernel/cpu/sgx/main.c sgx_page_cache_init() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
drivers/crypto/intel/qat/qat_dh895xcc/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
arch/x86/kernel/apic/x2apic_uv_x.c build_socket_tables() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
arch/x86/kernel/apic/x2apic_uv_x.c uv_system_init_hub() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
arch/x86/kernel/apic/x2apic_uv_x.c uv_system_init_hub() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c gmc_v9_0_get_coherence_flags() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &process_info->lock |
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c gmc_v9_0_set_gmc_funcs() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/ulp/srp/ib_srp.c add_target_store() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &host->add_target_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct srp_host)->add_target_mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_get_pte_flags() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &prange->lock | ||
| LOCK2 | &prange->migrate_mutex | ||
| LOCK2 | &svms->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |
mm/mempolicy.c check_numabalancing_enable() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 1 |
drivers/crypto/intel/qat/qat_c3xxx/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/crypto/intel/qat/qat_4xxx/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/raid5.c alloc_thread_groups() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| CAPABLE | 0 | 21 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mddev->reconfig_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct mddev)->reconfig_mutex |
kernel/bpf/core.c alloc_new_pack() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c alloc_new_pack() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c alloc_new_pack() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c alloc_new_pack() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c alloc_new_pack() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_alloc() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_free() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_free() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_free() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
kernel/bpf/core.c bpf_prog_pack_free() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pack_mutex | ||
| HALF_LOCKED2 | &d->mutex |
drivers/crypto/intel/qat/qat_6xxx/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/crypto/intel/qat/qat_420xx/adf_drv.c adf_probe() -> num_node_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | state | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING |