Defined in 2 files as a prototype:

Defined in 7 files as a macro:

Defined in 5 files as a function:

Referenced in 70 files:

Smatch caller information:

drivers/infiniband/sw/rdmavt/cq.c rvt_create_cq() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/accel/habanalabs/common/device.c hl_init_cpu_for_irq() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-s32max

drivers/perf/arm-cmn.c arm_cmn_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value

kernel/dma/map_benchmark.c do_map_benchmark() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-1023
CAPPED_DATA 0 node 1
NOSPEC 0 node
USER_DATA 0 node 0-1023[c]

drivers/md/dm-ps-io-affinity.c ioa_select_path() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node r __cpu_to_node
BIT_INFO 0 node 0x0,0x7fffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &md->io_barrier

drivers/nvdimm/nd_perf.c nvdimm_pmu_cpu_hotplug_init() -> cpumask_of_node()

Type Parameter Key Value

drivers/nvdimm/nd_perf.c nvdimm_pmu_cpu_offline() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node r __cpu_to_node

mm/vmstat.c init_cpu_node_state() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1

mm/vmstat.c vmstat_cpu_dead() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node r __cpu_to_node
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cpuhp_state_mutex
HALF_LOCKED2 irq

arch/x86/kernel/cpu/microcode/amd.c load_microcode_amd() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/mpt3sas/mpt3sas_base.c _base_assign_reply_queues() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ioc->reset_in_progress_mutex
HALF_LOCKED2 &ioc->base_cmds.mutex
HALF_LOCKED2 &ioc->ctl_cmds.mutex
HALF_LOCKED2 &ioc->pci_access_mutex
HALF_LOCKED2 &ioc->scsih_cmds.mutex
HALF_LOCKED2 &ioc->tm_cmds.mutex
HALF_LOCKED2 &ioc->transport_cmds.mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct MPT3SAS_ADAPTER)->reset_in_progress_mutex

kernel/kthread.c kthread_fetch_affinity() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &kthread_affinity_lock

drivers/edac/skx_common.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node

kernel/irq/manage.c irq_setup_affinity() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &mask_lock
HALF_LOCKED2 &desc->lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 flags

drivers/base/node.c cpulist_read() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/base/node.c cpumap_read() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

mm/mm_init.c deferred_init_memmap() -> cpumask_of_node()

Type Parameter Key Value

drivers/infiniband/hw/erdma/erdma_main.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pdev->dev.mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/storvsc_drv.c get_og_chn() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &stor_device->lock
LOCK2 flags
HALF_LOCKED2 &sdev->state_mutex
TYPE_LOCK (struct storvsc_device)->lock

drivers/scsi/storvsc_drv.c storvsc_do_io() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &sdev->state_mutex

drivers/net/ethernet/sfc/siena/efx_channels.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node
RX_PATH
TASK_NOT_RUNNING

mm/page_alloc.c find_next_best_node() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &zonelist_update_seq.lock

mm/page_alloc.c zone_highsize() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &pcp_batch_high_lock

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c kfd_fill_cu_for_cpu() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
DATA_SOURCE 0 node $0
RX_PATH

drivers/crypto/intel/iaa/iaa_crypto_main.c rebalance_wq_table() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &wq->wq_lock
LOCK2 global &iaa_devices_lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct idxd_wq)->wq_lock

drivers/perf/thunderx2_pmu.c tx2_uncore_pmu_add_dev() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/perf/thunderx2_pmu.c tx2_uncore_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value

lib/cpu_rmap.c cpu_rmap_update() -> cpumask_of_node()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

lib/cpu_rmap.c cpu_rmap_update() -> cpumask_of_node()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

drivers/perf/alibaba_uncore_drw_pmu.c ali_drw_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value

drivers/hwtracing/ptt/hisi_ptt.c cpumask_show() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwtracing/ptt/hisi_ptt.c hisi_ptt_cpu_teardown() -> cpumask_of_node()

Type Parameter Key Value

drivers/hwtracing/ptt/hisi_ptt.c hisi_ptt_pmu_add() -> cpumask_of_node()

Type Parameter Key Value

kernel/sched/build_utility.c cpu_node_mask() -> cpumask_of_node()

Type Parameter Key Value

kernel/sched/build_utility.c sched_init_numa() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING

kernel/sched/build_utility.c sched_update_numa() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node r __cpu_to_node
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &cpuhp_state_mutex
HALF_LOCKED2 irq

drivers/perf/arm-ni.c arm_ni_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value

drivers/infiniband/hw/hfi1/affinity.c hfi1_dev_affinity_init() -> cpumask_of_node()

Type Parameter Key Value

drivers/infiniband/hw/hfi1/affinity.c hfi1_get_proc_affinity() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node $0
LOCK2 &affinity->lock
HALF_LOCKED2 global &hfi1_mutex
TYPE_LOCK (struct hfi1_affinity_node_list)->lock

kernel/sched/fair.c get_scan_cpumasks() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh
HALF_LOCKED2 rcu

kernel/sched/fair.c get_scan_cpumasks() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __cpu_to_node
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh
HALF_LOCKED2 rcu

kernel/sched/fair.c get_scan_cpumasks() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh
HALF_LOCKED2 rcu

kernel/sched/fair.c task_numa_assign() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 rcu_read

kernel/sched/fair.c task_numa_assign() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 rcu_read

kernel/sched/fair.c task_numa_find_cpu() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

kernel/sched/fair.c task_numa_find_cpu() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

kernel/sched/fair.c update_numa_stats() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mm->mmap_lock

kernel/sched/fair.c update_numa_stats() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mm->mmap_lock

kernel/sched/fair.c update_numa_stats() -> cpumask_of_node()

Type Parameter Key Value
DATA_SOURCE 0 node $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock

drivers/hv/channel_mgmt.c init_vp_index() -> cpumask_of_node()

Type Parameter Key Value
LOCK2 global &vmbus_connection.channel_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct vmbus_connection)->channel_mutex

drivers/hv/channel_mgmt.c init_vp_index() -> cpumask_of_node()

Type Parameter Key Value
LOCK2 global &vmbus_connection.channel_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct vmbus_connection)->channel_mutex

drivers/dma/dmaengine.c dma_chan_is_local() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &wq->wq_lock
HALF_LOCKED2 global &dma_list_mutex

arch/x86/kernel/apic/vector.c assign_irq_vector_any_locked() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 global &vector_lock

arch/x86/kernel/apic/vector.c assign_irq_vector_any_locked() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 flags
LOCK2 global &vector_lock

arch/x86/kernel/smpboot.c slit_cluster_package() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/hfi1/ruc.c hfi1_do_send() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
TASK_NOT_RUNNING
LOCK2 &qp->s_lock
LOCK2 ps.flags
TYPE_LOCK (struct rvt_qp)->s_lock

drivers/pci/pci-sysfs.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/pci/pci-sysfs.c pci_dev_show_local_cpu() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/net/ethernet/sfc/efx_channels.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/google/gve/gve_main.c gve_get_node_mask() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &priv->dev->lock

drivers/scsi/megaraid/megaraid_sas_base.c megasas_set_high_iops_queue_affinity_and_hint() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
FUZZY_MAX 0 node 0
RX_PATH
TASK_NOT_RUNNING

drivers/pci/pci-driver.c pci_call_probe() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-1023
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c kfd_numa_node_to_apic_id() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
DATA_SOURCE 0 node $0
RX_PATH

drivers/block/mtip32xx/mtip32xx.c get_least_used_cpu_on_node() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
DATA_SOURCE 0 node $0
RX_PATH
TASK_NOT_RUNNING

drivers/block/mtip32xx/mtip32xx.c mtip_pci_probe() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING

drivers/block/mtip32xx/mtip32xx.c mtip_pci_probe() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/hw/hfi1/netdev_rx.c hfi1_num_netdev_contexts() -> cpumask_of_node()

Type Parameter Key Value

arch/x86/events/intel/uncore.c cpumask_of_pcibus() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __pcibus_to_node
PREEMPT_ADD
HALF_LOCKED2 global &pci2phy_map_lock

net/sunrpc/svc.c svc_pool_map_set_cpumask() -> cpumask_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &nfsd_mutex

drivers/perf/dwc_pcie_pmu.c dwc_pcie_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value

kernel/workqueue.c select_numa_node_cpu() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-1023
DATA_SOURCE 0 node $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 irq_flags

kernel/workqueue.c wq_update_node_max_active() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node 0-64
CAPPED_DATA 0 node 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &wq->mutex
HALF_LOCKED2 global &wq_pool_mutex
TYPE_LOCK (struct workqueue_struct)->mutex

drivers/infiniband/hw/hfi1/tid_rdma.c _hfi1_schedule_tid_send() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qp->s_lock
HALF_LOCKED2 &packet->qp->r_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &qp->r_lock
HALF_LOCKED2 flags
HALF_LOCKED2 ps->flags
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct rvt_qp)->s_lock

drivers/infiniband/hw/hfi1/tid_rdma.c hfi1_do_tid_send() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
LOCK2 &qp->s_lock
LOCK2 ps.flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct rvt_qp)->s_lock

drivers/infiniband/hw/hfi1/tid_rdma.c tid_rdma_schedule_tid_wakeup() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &qp->s_lock
TYPE_LOCK (struct rvt_qp)->s_lock

kernel/sched/core.c select_fallback_rq() -> cpumask_of_node()

Type Parameter Key Value
PARAM_VALUE 0 node s32min-(-2),0-s32max
DATA_SOURCE 0 node r __cpu_to_node
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &p->pi_lock

drivers/infiniband/hw/hfi1/qp.c _hfi1_schedule_send() -> cpumask_of_node()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 flags

drivers/perf/fujitsu_uncore_pmu.c fujitsu_uncore_pmu_offline_cpu() -> cpumask_of_node()

Type Parameter Key Value