Defined in 1 files as a function:
Referenced in 4 files:
- drivers/net/bonding/bond_main.c
- drivers/net/bonding/bond_netlink.c, line 43
- drivers/net/bonding/bond_sysfs_slave.c, line 23
- include/net/bonding.h
Smatch caller information:
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/bonding/bond_3ad.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| DATA_SOURCE | 0 | slave | $0 |
| PREEMPT_ADD | |||
| LOCK2 | &bond->mode_lock | ||
| LOCK2 | bh | ||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct bonding)->mode_lock |
drivers/net/bonding/bond_sysfs_slave.c state_show() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| DATA_SOURCE | 0 | slave | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/net/ethernet/mellanox/mlx5/core/en/rep/bond.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $0 |
| LOCK2 | rcu_read |
drivers/net/bonding/bond_main.c bond_arp_rcv() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $2 |
drivers/net/bonding/bond_main.c bond_fill_ifslave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| DATA_SOURCE | 0 | slave | $0 |
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &net->rtnl_mutex |
drivers/net/bonding/bond_main.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | slave | 1 |
| DATA_SOURCE | 0 | slave | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | slave->dev->num_tc | |
| HALF_LOCKED2 | rcu_read |
drivers/net/bonding/bond_main.c bond_na_rcv() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $2 |
drivers/net/bonding/bond_main.c slave_do_arp_validate() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $1 |
drivers/net/bonding/bond_netlink.c bond_fill_slave_info() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &slave_dev->ethtool->rss_lock | ||
| HALF_LOCKED2 | &slave_dev->lock |
drivers/net/bonding/bond_alb.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 4096-ptr_max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | slave | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | slave->dev->num_tc | |
| HALF_LOCKED2 | &bond->mode_lock | ||
| HALF_LOCKED2 | rcu_read |
drivers/net/bonding/bond_options.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | slave | 1-u64max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | slave | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | slave->dev->num_tc |
drivers/infiniband/hw/hns/hns_roce_bond.c bond_is_active_slave() -> bond_slave_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | slave | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | slave | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &pool->lock |