Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

net/tipc/monitor.c tipc_mon_get_state() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
CAPPED_DATA 0 peer->peer_cnt 1
DATA_SOURCE 0 peer r tipc_monitor
DATA_SOURCE 1 skb $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &le->lock
LOCK2 &n->lock
LOCK2 bh
LOCK2 0 &peer->lock
TYPE_LOCK (struct tipc_link_entry)->lock
TYPE_LOCK (struct tipc_monitor)->lock
TYPE_LOCK (struct tipc_node)->lock

net/tipc/monitor.c tipc_mon_peer_down() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
DATA_SOURCE 0 peer r tipc_monitor
DATA_SOURCE 1 skb $1
NOSPEC 1 skb
NOSPEC 1 skb
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 skb 1-u32max[c]
LOCK2 bh
LOCK2 0 &peer->lock
HALF_LOCKED2 &tn->node_list_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct tipc_monitor)->lock

net/tipc/monitor.c tipc_mon_peer_up() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
DATA_SOURCE 0 peer r tipc_monitor
DATA_SOURCE 1 skb $1
NOSPEC 1 skb
NOSPEC 1 skb
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 skb 1-u32max[c]
LOCK2 bh
LOCK2 0 &peer->lock
HALF_LOCKED2 &tn->node_list_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct tipc_monitor)->lock

net/tipc/monitor.c tipc_mon_rcv() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
DATA_SOURCE 0 peer r tipc_monitor
DATA_SOURCE 1 skb $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 bh
LOCK2 0 &peer->lock
HALF_LOCKED2 &le->lock
HALF_LOCKED2 &n->lock
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct tipc_monitor)->lock

net/tipc/monitor.c tipc_mon_remove_peer() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
DATA_SOURCE 0 peer r tipc_monitor
DATA_SOURCE 1 skb $1
NOSPEC 1 skb
RX_PATH
TASK_NOT_RUNNING
LOCK2 bh
LOCK2 rcu_read
LOCK2 0 &peer->lock
TYPE_LOCK (struct tipc_monitor)->lock

drivers/net/wireguard/netlink.c wg_get_device_dumpit() -> get_peer()

Type Parameter Key Value
PARAM_VALUE 0 peer 4096-ptr_max
PARAM_VALUE 0 peer->handshake.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 peer->handshake.lock.first_waiter->type 0-1
PARAM_VALUE 1 skb 4096-ptr_max
PARAM_VALUE 1 skb->data 4096-ptr_max
PARAM_VALUE 1 skb->data_len 0
PARAM_VALUE 1 skb->destructor 172217845709488128
PARAM_VALUE 1 skb->sk 4096-ptr_max
PARAM_VALUE 2 ctx 4096-ptr_max
PARAM_VALUE 2 ctx->next_peer 0,4096-ptr_max
PARAM_VALUE 2 ctx->wg 4096-ptr_max
PARAM_VALUE 2 ctx->wg->device_update_lock.dep_map->name 0-255
PARAM_VALUE 2 ctx->wg->device_update_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 2 ctx->wg->device_update_lock.osq.tail.counter 0-s32max
PARAM_VALUE 2 ctx->wg->device_update_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 2 ctx->wg->device_update_lock.wait_lock.owner (-1)
PARAM_VALUE 2 ctx->wg->device_update_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 2 ctx->wg->static_identity.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 2 ctx->wg->static_identity.lock.first_waiter->type 0-1
BUF_SIZE 1 skb (-1)-s32max
BUF_SIZE 1 skb (-1)-s32max
BUF_SIZE 2 ctx 48
BUF_SIZE 2 ctx 48
CAPPED_DATA 0 &peer->peer_list 1
DATA_SOURCE 1 skb $0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 skb->sk->sk_backlog.len
LOCK2 &wg->device_update_lock
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &nlk->nl_cb_mutex
TYPE_LOCK (struct netlink_sock)->nl_cb_mutex
TYPE_LOCK (struct wg_device)->device_update_lock