Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/target/target_core_pscsi.c pscsi_create_type_disk() -> pscsi_add_device_to_list()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_index | 0-s32max |
| PARAM_VALUE | 0 | dev->se_hba | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->se_hba->hba_ptr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport->transport_flags_default | 0-1,7 |
| PARAM_VALUE | 0 | dev->udev_path | 4096-ptr_max |
| PARAM_VALUE | 0 | *dev->udev_path | 1-255 |
| PARAM_VALUE | 1 | sd | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host->host_lock | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host->host_lock->rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sd->host->hostt->module->refcnt.counter | 0-s32max |
| PARAM_VALUE | 1 | sd->host->hostt->module->state | 0-1,3-u32max |
| PARAM_VALUE | 1 | sd->lun | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | sd->sdev_state | 0-2,5-u32max |
| PARAM_VALUE | 1 | sd->type | 0,20 |
| BUF_SIZE | 0 | dev->se_hba | (-1),416 |
| CAPPED_DATA | 1 | sd->channel | 1 |
| CAPPED_DATA | 1 | sd->id | 1 |
| CAPPED_DATA | 1 | sd->lun | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | sd | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | dev->dev_attrib.da_dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->t10_alua.t10_dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->t10_wwn.t10_dev->queue_cnt | |
| LOCK2 | sh->host_lock | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |
drivers/target/target_core_pscsi.c pscsi_create_type_nondisk() -> pscsi_add_device_to_list()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_index | 0-s32max |
| PARAM_VALUE | 0 | dev->se_hba | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->se_hba->hba_ptr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->transport->transport_flags_default | 0-1,7 |
| PARAM_VALUE | 1 | sd | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host->host_lock | 4096-ptr_max |
| PARAM_VALUE | 1 | sd->host->host_lock->rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | sd->host->hostt->module->refcnt.counter | 0-s32max |
| PARAM_VALUE | 1 | sd->host->hostt->module->state | 0-1,3-u32max |
| PARAM_VALUE | 1 | sd->lun | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 1 | sd->sdev_state | 0-2,5-u32max |
| PARAM_VALUE | 1 | sd->type | 1-19,21-255 |
| BUF_SIZE | 0 | dev->se_hba | (-1),416 |
| CAPPED_DATA | 1 | sd->channel | 1 |
| CAPPED_DATA | 1 | sd->id | 1 |
| CAPPED_DATA | 1 | sd->lun | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | sd | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | dev->dev_attrib.da_dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->t10_alua.t10_dev->queue_cnt | |
| NO_OVERFLOW_SIMPLE | 0 | dev->t10_wwn.t10_dev->queue_cnt | |
| LOCK2 | sh->host_lock | ||
| HALF_LOCKED2 | &buffer->mutex | ||
| HALF_LOCKED2 | &frag->frag_sem |