Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 20 files:
- drivers/infiniband/core/nldev.c, line 1844
- drivers/leds/trigger/ledtrig-netdev.c, line 297
- drivers/net/dsa/dsa_loop.c, line 376
- drivers/net/ppp/pppoe.c, line 644
- drivers/net/wireguard/netlink.c, line 34
- drivers/scsi/fcoe/fcoe_transport.c, line 720
- net/core/dev.c
- net/core/netprio_cgroup.c, line 206
- net/core/pktgen.c, line 2152
- net/core/utils.c, line 345
- net/ieee802154/nl-mac.c, line 154
- net/ieee802154/nl-phy.c, line 284
- net/ieee802154/socket.c, line 137
- net/ipv4/icmp.c, line 1341
- net/netfilter/xt_TEE.c, line 117
- net/openvswitch/vport-netdev.c, line 131
- net/smc/smc_pnet.c, line 366
- net/sunrpc/addr.c, line 186
- net/tipc/bearer.c, line 433
- net/x25/x25_route.c, line 119
Smatch caller information:
net/ieee802154/nl-phy.c ieee802154_del_iface() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| DATA_SOURCE | 1 | name | r nla_data |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| 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 &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 | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/xt_TEE.c tee_tg_check() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| CAPPED_DATA | 0 | net->gen | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name |
net/core/pktgen.c pktgen_dev_get_by_name() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 21 |
| TERMINATED | 1 | name | 1 |
| LOCK2 | global &pktgen_thread_lock |
net/tipc/bearer.c tipc_enable_l2_media() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 1,4096-ptr_max |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| 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 &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
net/smc/smc_pnet.c smc_pnet_add_eth() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| CAPPED_DATA | 0 | net->gen | 1 |
| DATA_SOURCE | 0 | net | $1 |
| DATA_SOURCE | 1 | name | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| 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 | ||
| HALF_LOCKED2 | rcu_read |
drivers/infiniband/core/nldev.c nldev_newlink() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 753656086354812928 |
| BUF_SIZE | 1 | name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/scsi/fcoe/fcoe_transport.c fcoe_if_to_netdev() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| PARAM_VALUE | 1 | name | 3375940358600216576 |
| BUF_SIZE | 1 | name | 18 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &ft_mutex | ||
| HALF_LOCKED2 | &of->mutex |
net/openvswitch/vport-netdev.c netdev_create() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | name | |
| LOCK2 | global &ovs_mutex | ||
| 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 | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/dsa/dsa_loop.c dsa_loop_drv_probe() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 5 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/leds/trigger/ledtrig-netdev.c set_device_name() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| PARAM_VALUE | 1 | name | 7879382800960585728 |
| BUF_SIZE | 1 | name | 16 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &led_cdev->trigger_lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/net/ppp/pppoe.c pppoe_connect() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | sk |
net/ieee802154/socket.c ieee802154_dev_ioctl() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| TERMINATED | 1 | name | 1 |
drivers/net/wireguard/netlink.c lookup_interface() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
net/sunrpc/addr.c rpc_parse_scope_id() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 1923089956877787136 |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 0 | net | (-1),1-s32max |
| BUF_SIZE | 1 | name | 13 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | (-1)-60 |
| STR_LEN | 0 | net | (-1)-60 |
| TERMINATED | 1 | name | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &of->mutex |
net/ipv4/icmp.c icmp_build_probe() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->ipv4.sysctl_icmp_echo_enable_probe | 1-255 |
| PARAM_VALUE | 1 | name | 6433216579733102592 |
| BUF_SIZE | 1 | name | 16 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | bh |
net/ieee802154/nl-mac.c ieee802154_nl_get_dev() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| PARAM_VALUE | 1 | name | 5228672730468945920 |
| BUF_SIZE | 1 | name | 17 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| 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 | ||
| HALF_LOCKED2 | rcu_read |
net/core/dev.c netdev_get_by_name() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | (-1),16 |
| BUF_SIZE | 1 | name | (-1),16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | name | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name |
net/x25/x25_route.c x25_dev_get() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 192,196,200 |
| BUF_SIZE | 1 | name | 192,196,200 |
| DATA_SOURCE | 1 | name | $0 |
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name |
net/core/utils.c inet6_pton() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 7197489450765729792 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | (-1),7 |
| STR_LEN | 0 | net | (-1),7 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
net/core/netprio_cgroup.c write_priomap() -> dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| PARAM_VALUE | 1 | name | 1973642515962081280 |
| BUF_SIZE | 1 | name | 17 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |