Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/base/core.c, line 4649
- drivers/infiniband/core/device.c
- drivers/infiniband/ulp/srp/ib_srp.c, line 4044
- net/core/dev.c
- net/ieee802154/core.c, line 241
- net/wireless/core.c
Smatch caller information:
drivers/infiniband/core/device.c ib_device_rename() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | new_name | 1513621289535168512 |
| BUF_SIZE | 1 | new_name | 0,64 |
| BUF_SIZE | 1 | new_name | 0,64 |
| DATA_SOURCE | 1 | new_name | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | *new_name | 0-255 |
| USER_PTR | 1 | new_name | |
| LOCK2 | global &devices_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &audit_cmd_mutex.lock | ||
| HALF_LOCKED2 | global &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read |
drivers/infiniband/core/device.c rdma_dev_change_netns() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | *new_name | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | new_name | |
| LOCK2 | &device->unregistration_lock | ||
| LOCK2 | global &devices_rwsem | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| TYPE_LOCK | (struct ib_device)->unregistration_lock |
drivers/infiniband/core/device.c rename_compat_devs() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 0-1025,1027-1029,1031-u64max |
| BUF_SIZE | 1 | new_name | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &device->compat_devs_mutex | ||
| LOCK2 | global &devices_rwsem | ||
| TYPE_LOCK | (struct ib_device)->compat_devs_mutex |
net/wireless/core.c cfg80211_dev_rename() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | new_name | 4096-ptr_max |
| DATA_SOURCE | 1 | new_name | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_PTR | 1 | new_name | |
| LOCK2 | &rdev->wiphy.mtx | ||
| LOCK2 | global &rtnl_mutex | ||
| 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 &rx_queue_mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct wiphy)->mtx |
net/wireless/core.c cfg80211_switch_netns() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| BUF_SIZE | 1 | new_name | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &rdev->wiphy.mtx | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct wiphy)->mtx |
drivers/infiniband/ulp/srp/ib_srp.c srp_rename_dev() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | new_name | 5013641570859892736 |
| BUF_SIZE | 1 | new_name | 72 |
| STR_LEN | 0 | dev | 71 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &device->client_data_rwsem | ||
| LOCK2 | global &devices_rwsem | ||
| TYPE_LOCK | (struct ib_device)->client_data_rwsem |
net/core/dev.c netif_change_name() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| BUF_SIZE | 1 | new_name | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &net->rtnl_mutex |
net/ieee802154/core.c cfg802154_switch_netns() -> device_rename()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| BUF_SIZE | 1 | new_name | 1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| HALF_LOCKED2 | global &rtnl_mutex |