Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

net/netfilter/nfnetlink_hook.c nfnl_hook_entries_head() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 1-u64max
BUF_SIZE 1 name 16
BUF_SIZE 1 name 16
DATA_SOURCE 0 net $2
DATA_SOURCE 1 name $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
UNITS 0 net unit_byte
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 &nlk->nl_cb_mutex
TYPE_LOCK (struct netlink_sock)->nl_cb_mutex

net/packet/af_packet.c packet_do_bind() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 1768457677969088512
BUF_SIZE 1 name 15
BUF_SIZE 1 name 15
DATA_SOURCE 1 name $1
TERMINATED 1 name 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &po->bind_lock
LOCK2 rcu_read
LOCK2 sk
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 global &o2nm_cluster_group.cs_subsys.su_mutex
TYPE_LOCK (struct packet_sock)->bind_lock

net/packet/af_packet.c packet_sendmsg_spkt() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 4096-ptr_max
BUF_SIZE 1 name 14
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 sk

net/core/fib_rules.c fib_nl2rule_locked() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
BUF_SIZE 1 name 16
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ops->lock
LOCK2 rcu_read
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
TYPE_LOCK (struct fib_rules_ops)->lock

net/core/fib_rules.c fib_nl2rule_locked() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
BUF_SIZE 1 name 16
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ops->lock
LOCK2 rcu_read
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
TYPE_LOCK (struct fib_rules_ops)->lock

net/core/dev_ioctl.c dev_ifsioc_locked() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 4096-ptr_max
BUF_SIZE 1 name 16
DATA_SOURCE 0 net $0
TERMINATED 1 name 1
UNITS 0 net unit_byte
LOCK2 rcu_read

net/core/dev_ioctl.c dev_load() -> dev_get_by_name_rcu()

Type Parameter Key Value
BUF_SIZE 1 name 16
BUF_SIZE 1 name 16
DATA_SOURCE 0 net $0
DATA_SOURCE 1 name $1
UNITS 0 net unit_byte
LOCK2 rcu_read

net/netlabel/netlabel_unlabeled.c netlbl_unlhsh_add() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 0 net 1824583183996030976
PARAM_VALUE 1 name 4096-ptr_max
DATA_SOURCE 0 net $0
DATA_SOURCE 1 name $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex

net/netlabel/netlabel_unlabeled.c netlbl_unlhsh_remove() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 0 net 1824583183996030976
PARAM_VALUE 1 name 4096-ptr_max
DATA_SOURCE 0 net $0
DATA_SOURCE 1 name $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex

net/core/sock.c sock_setbindtodevice() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 8130807899317641216
BUF_SIZE 1 name 16
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
UNITS 0 net unit_byte
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 sk

net/ipv4/arp.c arp_req_dev_by_name() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 0 net 4096-ptr_max
PARAM_VALUE 1 name 4096-ptr_max
BUF_SIZE 1 name 16
DATA_SOURCE 0 net $0
USER_DATA 1 *name 0-255
UNITS 0 net unit_byte
USER_PTR 1 name
LOCK2 rcu_read

net/core/dev.c dev_get_by_name() -> dev_get_by_name_rcu()

Type Parameter Key Value
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 0 net (-1),1-s32max
BUF_SIZE 1 name (-1),5,13,16-18,21,192,196,200
BUF_SIZE 1 name (-1),5,13,16-18,21,192,196,200
DATA_SOURCE 0 net $0
DATA_SOURCE 1 name $1
STR_LEN 0 net (-1)-60
STR_LEN 0 net (-1)-60
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
UNITS 0 net unit_byte
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &ft_mutex
HALF_LOCKED2 global &ovs_mutex
HALF_LOCKED2 global &pktgen_thread_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 sk

net/core/dev.c netif_get_mac_address() -> dev_get_by_name_rcu()

Type Parameter Key Value
BUF_SIZE 1 name 16
BUF_SIZE 1 name 16
DATA_SOURCE 0 net $1
DATA_SOURCE 1 name $2
UNITS 0 net unit_byte
LOCK2 global &dev_addr_sem
LOCK2 rcu_read
HALF_LOCKED2 global &rtnl_mutex

net/core/rtnetlink.c rtnl_dev_get_rcu() -> dev_get_by_name_rcu()

Type Parameter Key Value
PARAM_VALUE 1 name 1637190165117112320
BUF_SIZE 1 name 128
DATA_SOURCE 0 net $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 *name 0-255
UNITS 0 net unit_byte
USER_PTR 1 name
LOCK2 rcu_read
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex