Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/net/ppp/ppp_generic.c ppp_unit_register() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| BUF_SIZE | 1 | name | 16 |
| CAPPED_DATA | 0 | net->gen | 1 |
| STR_LEN | 0 | net | 15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &pn->all_ppp_mutex | ||
| LOCK2 | global &ppp_mutex | ||
| LOCK2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct ppp_net)->all_ppp_mutex |
drivers/net/bonding/bond_sysfs.c bond_create_sysfs() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 4096-ptr_max |
| PARAM_VALUE | 0 | net->gen | 4096-ptr_max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 0 | net | (-1)-s32max |
| BUF_SIZE | 1 | name | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &pernet_ops_rwsem |
net/core/dev.c __dev_change_net_namespace() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| BUF_SIZE | 1 | name | 16 |
| DATA_SOURCE | 0 | net | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
net/core/dev.c __dev_change_net_namespace() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| BUF_SIZE | 0 | net | (-1),10304,10432 |
| BUF_SIZE | 1 | name | 1-65536 |
| DATA_SOURCE | 0 | net | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | net | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
net/core/dev.c default_device_exit_net() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| PARAM_VALUE | 1 | name | 1736524167704989696 |
| BUF_SIZE | 1 | name | 16 |
| STR_LEN | 0 | net | 15 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &init_net.rtnl_mutex | ||
| LOCK2 | global &pernet_ops_rwsem | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/core/dev.c default_device_exit_net() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | net | 1824583183996030976 |
| BUF_SIZE | 1 | name | 1-65536 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &net->rtnl_mutex | ||
| LOCK2 | global &init_net.rtnl_mutex | ||
| LOCK2 | global &pernet_ops_rwsem | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct net)->rtnl_mutex |
net/core/dev.c dev_prep_valid_name() -> netdev_name_in_use()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | name | 4096-ptr_max |
| PARAM_VALUE | 1 | *name | 1-255 |
| BUF_SIZE | 0 | net | (-1),10304,10432,10624 |
| BUF_SIZE | 0 | net | (-1),10304,10432,10624 |
| BUF_SIZE | 1 | name | (-1)-0,6-7,16 |
| BUF_SIZE | 1 | name | (-1)-0,6-7,16 |
| DATA_SOURCE | 0 | net | $0 |
| DATA_SOURCE | 1 | name | $2 |
| STR_LEN | 0 | net | (-1),5-6,15 |
| STR_LEN | 0 | net | (-1),5-6,15 |
| STR_LEN | 1 | name | (-1),15 |
| STR_LEN | 1 | name | (-1),15 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *name | 1-255 |
| UNITS | 0 | net | unit_byte |
| USER_PTR | 1 | name | |
| HALF_LOCKED2 | global &rtnl_mutex |