Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 24 files:
- drivers/net/bonding/bond_main.c, line 4632
- drivers/net/bonding/bond_options.c
- drivers/net/eql.c
- drivers/net/ethernet/8390/ne.c, line 1028
- drivers/net/netconsole.c, line 492
- drivers/net/tun.c, line 2849
- drivers/nvme/host/tcp.c, line 2963
- drivers/s390/net/ctcm_mpc.c, line 298
- include/net/pkt_cls.h, line 579
- net/8021q/vlan.c, line 530
- net/bridge/br_if.c, line 487
- net/bridge/br_ioctl.c, line 452
- net/bridge/br_sysfs_if.c, line 245
- net/core/dev.c, line 912
- net/core/dev_ioctl.c, line 545
- net/core/rtnetlink.c, line 3538
- net/dcb/dcbnl.c, line 1944
- net/ipv4/arp.c, line 1021
- net/ipv4/devinet.c, line 1123
- net/ipv4/fib_frontend.c, line 568
- net/ipv4/ipmr.c
- net/ipv6/addrconf.c, line 2986
- net/netfilter/ipvs/ip_vs_sync.c, line 1807
- net/wireless/wext-core.c, line 953
Smatch caller information:
net/bridge/br_if.c br_del_bridge() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 3218900800237735936,4853596181298683904 |
| BUF_SIZE | 1 | name | 16 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | name | $1 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| LOCK2 | global &br_ioctl_mutex | ||
| LOCK2 | global &rtnl_mutex |
net/sched/cls_flower.c tcf_change_indev() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 9008933833501855744 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| 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 &rx_queue_mutex |
net/ipv4/fib_frontend.c rtentry_to_fib_config() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | name | 3891038565205049344 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/core/dev_ioctl.c dev_ifsioc() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| 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 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/wireless/wext-core.c wireless_process_ioctl() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex |
net/bridge/br_sysfs_if.c store_backup_port() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| DATA_SOURCE | 1 | name | $1 |
| STR_LEN | 0 | net | 0-1010101 |
| NS_CAPABLE | 0 | 12 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/net/netconsole.c netcons_netpoll_setup() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem | ||
| HALF_LOCKED2 | global &dynamic_netconsole_mutex |
net/ipv6/addrconf.c addrconf_set_sit_dstaddr() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| HALF_LOCKED2 | &smc->sk | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/sched/cls_u32.c tcf_change_indev() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 5877996314293686272 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| 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 |
drivers/net/bonding/bond_main.c bond_do_ioctl() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| NS_CAPABLE | 0 | 12 | |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
net/ipv4/arp.c arp_req_dev_by_name() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| NS_CAPABLE | 0 | 12 | |
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| HALF_LOCKED2 | &smc->sk | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
drivers/net/eql.c eql_emancipate() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 16 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
drivers/net/eql.c eql_enslave() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 16 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/eql.c eql_g_slave_cfg() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 16 |
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
drivers/net/eql.c eql_s_slave_cfg() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 16 |
| CAPABLE | 0 | 12 | |
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
drivers/net/tun.c tun_set_iff() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex |
drivers/nvme/host/tcp.c nvme_tcp_alloc_ctrl() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| LOCK2 | global &nvmf_dev_mutex |
net/dcb/dcbnl.c dcb_doit() -> __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 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| 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 |
drivers/net/bonding/bond_options.c bond_option_active_slave_set() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/bonding/bond_options.c bond_option_queue_id_set() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 1 | *name | 0 |
| BUF_SIZE | 1 | name | 1,8,16,23 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/bonding/bond_options.c bond_option_slaves_set() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4921954617254993921 |
| PARAM_VALUE | 1 | *name | 1-255 |
| BUF_SIZE | 1 | name | 16 |
| BUF_SIZE | 1 | name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &rtnl_mutex |
net/sched/cls_fw.c tcf_change_indev() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 5934834916819423232 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 0-255 |
| USER_PTR | 1 | name | |
| 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 |
net/netfilter/ipvs/ip_vs_sync.c start_sync_thread() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 0 |
| BUF_SIZE | 1 | name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ipvs->sync_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct netns_ipvs)->sync_mutex |
net/8021q/vlan.c vlan_ioctl_handler() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| BUF_SIZE | 1 | name | 24 |
| DATA_SOURCE | 0 | net | $0 |
| TERMINATED | 1 | name | 1 |
| USER_DATA | 1 | *name | 0-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| LOCK2 | global &rtnl_mutex | ||
| LOCK2 | global &vlan_ioctl_mutex |
net/ipv4/ipmr.c ipmr_new_tunnel() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | name | 1414596078617882624 |
| BUF_SIZE | 1 | name | 6 |
| DATA_SOURCE | 0 | net | $0 |
| STR_LEN | 0 | net | 5 |
| TERMINATED | 1 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex |
net/ipv4/ipmr.c ipmr_new_tunnel() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &rtnl_mutex |
net/core/rtnetlink.c rtnl_dev_get() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 9071481704977727488 |
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| 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 | |
| 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 | ||
| HALF_LOCKED2 | 0 | &net->rtnl_mutex |
net/bridge/br_ioctl.c br_ioctl_stub() -> __dev_get_by_name()
| 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 |
| NS_CAPABLE | 0 | 12 | |
| TERMINATED | 1 | name | 1 |
| UNITS | 0 | net | unit_byte |
| LOCK2 | global &br_ioctl_mutex | ||
| LOCK2 | global &rtnl_mutex |
net/ipv4/devinet.c devinet_ioctl() -> __dev_get_by_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net->rtnl_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | net->rtnl_mutex.osq.tail.counter | 0-s32max |
| 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 | global &rtnl_mutex | ||
| LOCK2 | 0 | &net->rtnl_mutex | |
| TYPE_LOCK | (struct net)->rtnl_mutex |