Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- net/core/dev.c, line 1056
- net/core/netdev-genl.c, line 1362
- net/ethtool/netlink.c
- net/ipv6/anycast.c, line 83
- net/ipv6/route.c, line 3615
- net/mpls/af_mpls.c, line 697
- net/psp/psp_nl.c, line 526
- net/shaper/shaper.c, line 218
Smatch caller information:
net/mpls/af_mpls.c find_outdev() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_label | 4096-ptr_max |
| PARAM_VALUE | 0 | net->mpls.platform_labels | 17-u64max |
| PARAM_VALUE | 1 | ifindex | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | tracker | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | ifindex | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ifindex | s32min-(-1),1-s32max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | ifindex | unit_array_size |
| LOCK2 | &net->mpls.platform_mutex | ||
| 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 netns_mpls)->platform_mutex |
net/shaper/shaper.c net_shaper_ctx_setup() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | tracker | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 1 | ifindex | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| 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/core/netdev-genl.c netdev_nl_queue_create_doit() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | tracker | 6454033915360428032 |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 1 | ifindex | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| LOCK2 | &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/ipv6/anycast.c ipv6_sock_ac_join() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 1 | ifindex | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | tracker | 4711961275649536000 |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 1 | ifindex | $1 |
| NS_CAPABLE | 0 | 12 | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ifindex | s32min-(-1),1-s32max |
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | sk |
net/psp/psp_nl.c psp_nl_dev_assoc_doit() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 0-ptr_max |
| PARAM_VALUE | 2 | tracker | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | net | r psp_nl_resolve_assoc_dev_ns |
| DATA_SOURCE | 1 | ifindex | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/ethtool/netlink.c ethnl_parse_header_dev_get() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | tracker | 8,24,4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 3264 |
| DATA_SOURCE | 0 | net | $2 |
| DATA_SOURCE | 1 | ifindex | r nla_get_u32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/ethtool/netlink.c ethnl_perphy_dumpit() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ifindex | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | tracker | 3789672006063542272 |
| PARAM_VALUE | 3 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | ifindex | unit_array_size |
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex |
net/ipv6/route.c fib6_nh_init() -> netdev_get_by_index()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ifindex | s32min-(-1),1-s32max |
| PARAM_VALUE | 2 | tracker | 4096-ptr_max |
| PARAM_VALUE | 3 | gfp | 2080,3264 |
| BUF_SIZE | 2 | tracker | 8 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 3 | gfp | $3 |
| HARD_MAX | 3 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | ifindex | s32min-(-1),1-s32max |
| UNITS | 0 | net | unit_byte |
| UNITS | 1 | ifindex | unit_array_size |
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | 0 | &net->rtnl_mutex |