Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 9 files:

Smatch caller information:

drivers/scsi/scsi_sysfs.c store_rescan_field() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/scsi_sysfs.c store_state_field() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->request_queue 4096-ptr_max
PARAM_VALUE 0 sdev->sdev_state 2,6
PARAM_VALUE 0 sdev->state_mutex.dep_map->name 0-255
PARAM_VALUE 0 sdev->state_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 sdev->state_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sdev->state_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 sdev->state_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 sdev->state_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 sdev->state_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 sdev->state_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 sdev->state_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sdev->state_mutex.wait_lock.dep_map->name 0-255
CAPPED_DATA 0 sdev->request_queue->nr_hw_queues 1
CAPPED_DATA 0 &sdev->state_mutex 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/scsi_lib.c scsi_evt_emit() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 sdev->pending_events 4096-ptr_max
PARAM_VALUE 0 sdev->request_queue->dev->power.wakeirq->status 0-4294967295
DATA_SOURCE 0 sdev $0
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/scsi/mvumi.c mvumi_rescan_devices() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->host->hostt->module->refcnt.counter 0-s32max
PARAM_VALUE 0 sdev->host->hostt->module->state 0-1,3-u32max
PARAM_VALUE 0 sdev->sdev_state 0-2,5-u32max
CAPPED_DATA 0 sdev->channel 1
CAPPED_DATA 0 sdev->id 1
CAPPED_DATA 0 sdev->lun 1
DATA_SOURCE 0 sdev r scsi_device_lookup
NOCHECK_CALL
LOCK2 &mhba->device_lock
TYPE_LOCK (struct mvumi_hba)->device_lock

drivers/scsi/aacraid/commsup.c aac_handle_aif() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->host->hostt->module->refcnt.counter 0-s32max
PARAM_VALUE 0 sdev->host->hostt->module->state 0-1,3-u32max
PARAM_VALUE 0 sdev->request_queue->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_gendev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_state 0-2,5-u32max
CAPPED_DATA 0 sdev->channel 1
CAPPED_DATA 0 sdev->id 1
CAPPED_DATA 0 sdev->lun 1
DATA_SOURCE 0 sdev r scsi_device_lookup
FUZZY_MAX 0 sdev->sdev_state 2
NOCHECK_CALL

drivers/scsi/storvsc_drv.c storvsc_device_scan() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->host->hostt->module->refcnt.counter 0-s32max
PARAM_VALUE 0 sdev->host->hostt->module->state 0-1,3-u32max
PARAM_VALUE 0 sdev->sdev_state 0-2,5-u32max
CAPPED_DATA 0 sdev->channel 1
CAPPED_DATA 0 sdev->id 1
CAPPED_DATA 0 sdev->lun 1
DATA_SOURCE 0 sdev r scsi_device_lookup
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/scsi/virtio_scsi.c virtscsi_handle_param_change() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->host->hostt->module->refcnt.counter 0-s32max
PARAM_VALUE 0 sdev->host->hostt->module->state 0-1,3-u32max
PARAM_VALUE 0 sdev->sdev_state 0-2,5-u32max
CAPPED_DATA 0 sdev->channel 1
CAPPED_DATA 0 sdev->id 1
CAPPED_DATA 0 sdev->lun 1
DATA_SOURCE 0 sdev r scsi_device_lookup
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/ata/libata-scsi.c ata_scsi_dev_rescan() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->host->hostt->module->refcnt.counter 0-s32max
PARAM_VALUE 0 sdev->host->hostt->module->state 0-1,3-u32max
PARAM_VALUE 0 sdev->sdev_state 0-2,5-u32max
LOCK2 &ap->scsi_scan_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ata_port)->scsi_scan_mutex

drivers/scsi/smartpqi/smartpqi_init.c pqi_update_device_list() -> scsi_rescan_device()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->request_queue->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 sdev->sdev_dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_gendev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sdev->sdev_state 0-3,5,8-u32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ctrl_info->scan_mutex
TYPE_LOCK (struct pqi_ctrl_info)->scan_mutex