Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 10 files:
- drivers/leds/trigger/ledtrig-netdev.c, line 248
- drivers/net/bonding/bond_main.c, line 801
- drivers/net/team/team_core.c, line 3095
- drivers/scsi/fcoe/fcoe_transport.c, line 124
- net/bridge/br_if.c, line 40
- net/ethtool/ioctl.c
- net/ethtool/linkinfo.c
- net/ethtool/linkmodes.c
- net/sched/sch_cbs.c, line 330
- net/sched/sch_taprio.c, line 1302
Smatch caller information:
net/bridge/br_if.c port_cost() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->netdev_ops->ndo_set_config | 0,1586268954384080896,2133952100825280512,4430316855586635776 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->alloc | 0,1182153660833808384,3130032447137456128 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->get_num_rx_queues | 0,1694260139628544000,4559208055891021824,7097615251001798656,8443738062496038912 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->get_num_tx_queues | 0,1694260139628544000,4559208055891021824,7071371917186535424,8443738062496038912 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->maxtype | 0-6,8-10,15,18,20,22,24,34,50 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->peer_type | 0-1 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,40,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,744,1056,1128,1336,1616,2176,2240,2272,2560,3296,3544,3552,3720,9688-u64max |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->setup | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->validate | 0,4096-ptr_max |
| PARAM_VALUE | 1 | link_ksettings | 5835411204833480704 |
| BUF_SIZE | 0 | dev->nd_net.net | (-1),10304,10432 |
| DATA_SOURCE | 0 | dev | $0 |
| NOSPEC | 0 | dev->ifindex | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dev->flags | 0-527361[c] |
| USER_DATA | 0 | dev->ifindex | 0-s32max[c] |
| USER_DATA | 0 | dev->mtu | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->group | |
| NO_OVERFLOW_SIMPLE | 0 | dev->proto_down | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_rx_queues |
net/ethtool/ioctl.c __ethtool_get_link_ksettings() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->netdev_ops | 4096-ptr_max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | link_ksettings | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | sk |
net/sched/sch_taprio.c taprio_set_picos_per_byte() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | link_ksettings | 1517518550949044224 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
drivers/scsi/fcoe/fcoe_transport.c fcoe_link_speed_update() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | link_ksettings | 4160919741380362240 |
| DATA_SOURCE | 0 | dev | r fcoe_get_netdev |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &bnx2fc_dev_lock | ||
| HALF_LOCKED2 | global &fcoe_config_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/leds/trigger/ledtrig-netdev.c get_device_state() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | link_ksettings | 8017691946710425600 |
| CAPPED_DATA | 0 | dev | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| LOCK2 | &trigger_data->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct led_netdev_data)->lock |
drivers/net/bonding/bond_main.c bond_update_speed_duplex() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | link_ksettings | 5718741511765544960 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/team/team_core.c __team_port_change_send() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | link_ksettings | 4916500435143503872 |
| NOSPEC | 0 | dev->ifindex | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dev->flags | 0-526849[c] |
| USER_DATA | 0 | dev->ifindex | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | dev->group | |
| NO_OVERFLOW_SIMPLE | 0 | dev->proto_down | |
| NO_OVERFLOW_SIMPLE | 0 | dev->real_num_rx_queues | |
| HALF_LOCKED2 | global &rtnl_mutex |
net/ethtool/linkinfo.c ethnl_set_linkinfo() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->cfg_pending | 1-u64max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 1 | link_ksettings | 4568114800056115200 |
| PARAM_VALUE | 1 | link_ksettings->base.cmd | 0 |
| PARAM_VALUE | 1 | link_ksettings->lanes | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/ethtool/linkinfo.c linkinfo_prepare_data() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_error | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | link_ksettings | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/sched/sch_cbs.c cbs_set_port_rate() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | link_ksettings | 86787331848290304 |
| DATA_SOURCE | 0 | dev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
net/ethtool/linkmodes.c ethnl_set_linkmodes() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->cfg_pending | 1-u64max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->netdev_ops | 4096-ptr_max |
| PARAM_VALUE | 1 | link_ksettings | 3112615686251995136 |
| PARAM_VALUE | 1 | link_ksettings->base.cmd | 0 |
| PARAM_VALUE | 1 | link_ksettings->lanes | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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/ethtool/linkmodes.c linkmodes_prepare_data() -> netif_get_link_ksettings()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev.parent->type | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_error | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->enable_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->parent->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->prepare_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->clk->core->protect_count | 0-4294967295 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.deferred_resume | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.idle_notification | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request | 0-4 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.request_pending | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.runtime_status | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.timer_autosuspends | 0-1 |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.usage_count.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->priv->cpsw->dev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | dev->rtnl_link_ops->priv_size | 0,8,32,48,56,88,112,120,144,160,224,240,256,296,616,624,728,736,1056,1128,1336,1616,2176,2240,2272,2560,3296,3720,9688-u64max |
| PARAM_VALUE | 1 | link_ksettings | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |