Defined in 1 files as a function:

Referenced in 7 files:

Smatch caller information:

kernel/trace/trace_events_filter.c do_filter_cpumask_scalar() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 0 cpu 1
PARAM_VALUE 1 srcp->bits 4096-ptr_max
DATA_SOURCE 1 srcp $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &event_mutex

kernel/trace/trace_events_filter.c do_filter_cpumask_scalar() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 0 cpu 1
PARAM_VALUE 1 srcp->bits 4096-ptr_max
DATA_SOURCE 1 srcp $1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &event_mutex

drivers/net/wireguard/send.c wg_cpumask_choose_online() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 1 srcp 7398857465241333760
CAPPED_DATA 0 cpu 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

drivers/cpufreq/acpi-cpufreq.c policy_is_shared() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 0 cpu 1
PARAM_VALUE 1 srcp 1-u64max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &policy->rwsem
HALF_LOCKED2 &sp->mutex
TYPE_LOCK (struct cpufreq_policy)->rwsem

kernel/sched/build_utility.c policy_is_shared() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 0 cpu 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &policy->rwsem
HALF_LOCKED2 global &intel_pstate_limits_lock
HALF_LOCKED2 global &system_transition_mutex

drivers/infiniband/hw/hfi1/affinity.c find_hw_thread_mask() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 1 srcp 1-u64max
DATA_SOURCE 1 srcp $1
LOCK2 &affinity->lock
HALF_LOCKED2 global &hfi1_mutex
TYPE_LOCK (struct hfi1_affinity_node_list)->lock

drivers/infiniband/hw/hfi1/affinity.c init_real_cpu_mask() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 1 srcp 3165246285832716304

crypto/pcrypt.c pcrypt_aead_init_tfm() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 1 srcp 7398857465241333760
CAPPED_DATA 0 cpu 1
RX_PATH
TASK_NOT_RUNNING

kernel/padata.c padata_cpu_hash() -> cpumask_nth()

Type Parameter Key Value
CAPPED_DATA 0 cpu 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh

kernel/padata.c padata_do_parallel() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 1 srcp->bits 4096-ptr_max
CAPPED_DATA 0 cpu 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

drivers/cpufreq/cpufreq_governor.c policy_is_shared() -> cpumask_nth()

Type Parameter Key Value
PARAM_VALUE 0 cpu 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &policy->rwsem
HALF_LOCKED2 global &intel_pstate_limits_lock
HALF_LOCKED2 global &system_transition_mutex