Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

lib/group_cpus.c alloc_cluster_groups() -> alloc_groups_to_nodes()

Type Parameter Key Value
PARAM_VALUE 0 numgrps 0-4294967294
PARAM_VALUE 1 numcpus 1-u32max
PARAM_VALUE 2 node_groups 4096-ptr_max
PARAM_VALUE 3 num_nodes 1-4294967294
BUF_SIZE 2 node_groups 0-34359738360
BUF_SIZE 2 node_groups 0-34359738360
CAPPED_DATA 0 numgrps 1
CAPPED_DATA 1 numcpus 1
CAPPED_DATA 3 num_nodes 1
DATA_SOURCE 0 numgrps $1
DATA_SOURCE 1 numcpus $0
DATA_SOURCE 2 node_groups r _kzalloc_noprof
PARAM_COMPARE 0 numgrps >= $3
PARAM_COMPARE 3 num_nodes <= $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 3 num_nodes
UNITS 3 num_nodes unit_array_size

lib/group_cpus.c alloc_nodes_groups() -> alloc_groups_to_nodes()

Type Parameter Key Value
PARAM_VALUE 2 node_groups 4096-ptr_max
PARAM_VALUE 3 num_nodes 1-1025
BUF_SIZE 2 node_groups 8-8200
BUF_SIZE 2 node_groups 8-8200
CAPPED_DATA 0 numgrps 1
CAPPED_DATA 3 num_nodes 1
DATA_SOURCE 0 numgrps $0 [m]
DATA_SOURCE 2 node_groups $5
PARAM_COMPARE 0 numgrps <= $1
PARAM_COMPARE 1 numcpus >= $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 numgrps
UNITS 0 numgrps unit_array_size