Defined in 1 files as a function:

Referenced in 10 files:

Smatch caller information:

drivers/net/wireguard/allowedips.c add() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 3367473427944906752,9043421990695841792
BUF_SIZE 1 key 4,16
BUF_SIZE 1 key 4,16
DATA_SOURCE 1 key $2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_PTR 1 key
HALF_LOCKED2 &mutex
HALF_LOCKED2 &wg->device_update_lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/wireguard/allowedips.c choose_and_connect_node() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
BUF_SIZE 0 node->peer (-1)-s32max
BUF_SIZE 1 key 16
DATA_SOURCE 0 node $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 node->bit_at_a 0-7[c]
USER_DATA 0 node->bit_at_b 0-7[c]
USER_DATA 0 node->cidr 0-32[c]
HALF_LOCKED2 &mutex
HALF_LOCKED2 &wg->device_update_lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/wireguard/allowedips.c find_node() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 2751206485399166976
BUF_SIZE 1 key 16
BUF_SIZE 1 key 16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mutex

drivers/net/wireguard/allowedips.c find_node() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 2751206485399166976
BUF_SIZE 1 key 16
BUF_SIZE 1 key 16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mutex

drivers/net/wireguard/allowedips.c find_node() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 2751206485399166976
BUF_SIZE 1 key 16
BUF_SIZE 1 key 16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $2
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 &mutex

drivers/net/wireguard/allowedips.c node_placement() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 3367473427944906752,6437657845644713984,7564473093462155264,9043421990695841792
BUF_SIZE 1 key 4,16
BUF_SIZE 1 key 4,16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_PTR 1 key
HALF_LOCKED2 &mutex
HALF_LOCKED2 &wg->device_update_lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/wireguard/allowedips.c node_placement() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 3367473427944906752,6437657845644713984,7564473093462155264,9043421990695841792
BUF_SIZE 1 key 4,16
BUF_SIZE 1 key 4,16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_PTR 1 key
HALF_LOCKED2 &mutex
HALF_LOCKED2 &wg->device_update_lock
HALF_LOCKED2 global &rtnl_mutex

drivers/net/wireguard/allowedips.c node_placement() -> choose()

Type Parameter Key Value
PARAM_VALUE 0 node 4096-ptr_max
PARAM_VALUE 1 key 3367473427944906752,6437657845644713984,7564473093462155264,9043421990695841792
BUF_SIZE 1 key 4,16
BUF_SIZE 1 key 4,16
CAPPED_DATA 0 node->cidr 1
DATA_SOURCE 1 key $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *key 0-255
USER_PTR 1 key
HALF_LOCKED2 &mutex
HALF_LOCKED2 &wg->device_update_lock
HALF_LOCKED2 global &rtnl_mutex