Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/scsi/snic/snic_disc.c snic_scsi_scan_tgt() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 3 lun u64max
PARAM_VALUE 4 rescan 1
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/scsi/scsi_transport_iscsi.c iscsi_user_scan_session() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->parent 4096-ptr_max
PARAM_VALUE 1 channel 0
PARAM_VALUE 2 id 0-4294967294
CAPPED_DATA 2 id 1
NOCHECK_CALL
LOCK2 &ihost->mutex
TYPE_LOCK (struct iscsi_cls_host)->mutex

drivers/scsi/storvsc_drv.c storvsc_user_scan() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 2 id 0-4294967294
PARAM_VALUE 4 rescan 2
CAPPED_DATA 1 channel 1
CAPPED_DATA 2 id 1
CAPPED_DATA 3 lun 1
CAPPED_DATA 3 lun 1
DATA_SOURCE 3 lun $3
NOSPEC 1 channel
NOSPEC 2 id
NOSPEC 3 lun
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 channel 0-s32max[c]
USER_DATA 2 id 0-s32max[c]
USER_DATA 3 lun 0-s32max[c]
UNITS 2 id unit_array_size
HALF_LOCKED2 &of->mutex

drivers/message/fusion/mptspi.c mpt_work_wrapper() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 1
PARAM_VALUE 3 lun 0
PARAM_VALUE 4 rescan 1
NOCHECK_CALL
UNITS 2 id unit_array_size
HALF_LOCKED2 &pool->lock

drivers/scsi/virtio_scsi.c virtscsi_handle_transport_reset() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 0
PARAM_VALUE 2 id 0-255
PARAM_VALUE 3 lun u64max
PARAM_VALUE 4 rescan 0
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/scsi/scsi_transport_sas.c sas_rphy_add() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 0
PARAM_VALUE 2 id 0-4294967294
PARAM_VALUE 3 lun 0,u64max
PARAM_VALUE 4 rescan 0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ctrl_info->scan_mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/scsi_transport_sas.c sas_user_scan() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 0
PARAM_VALUE 2 id 0-4294967294
PARAM_VALUE 4 rescan 2
DATA_SOURCE 3 lun $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 3 lun 0-u64max
LOCK2 &sas_host->lock
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct sas_host_attrs)->lock

drivers/infiniband/ulp/srp/ib_srp.c srp_add_target() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 0
PARAM_VALUE 3 lun u64max
PARAM_VALUE 4 rescan 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &host->add_target_mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct srp_host)->add_target_mutex

drivers/scsi/scsi_transport_fc.c fc_scsi_scan_rport() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 0 parent->parent 4096-ptr_max
PARAM_VALUE 3 lun u64max
PARAM_VALUE 4 rescan 1
NOCHECK_CALL
UNITS 2 id unit_array_size
HALF_LOCKED2 &pool->lock

drivers/scsi/scsi_transport_fc.c fc_user_scan_tgt() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 1 channel 0-4294967294
PARAM_VALUE 2 id 0-4294967294
PARAM_VALUE 4 rescan 2
CAPPED_DATA 1 channel 1
CAPPED_DATA 2 id 1
CAPPED_DATA 3 lun 1
CAPPED_DATA 3 lun 1
DATA_SOURCE 1 channel $1
DATA_SOURCE 2 id $2
DATA_SOURCE 3 lun $3
FUZZY_MAX 1 channel 0
NOSPEC 1 channel
NOSPEC 2 id
NOSPEC 3 lun
NOSPEC 3 lun
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 3 lun 0-s32max[c]
UNITS 2 id unit_array_size
HALF_LOCKED2 &of->mutex

drivers/scsi/mpi3mr/mpi3mr_os.c mpi3mr_report_tgtdev_to_host() -> scsi_scan_target()

Type Parameter Key Value
PARAM_VALUE 0 parent 4096-ptr_max
PARAM_VALUE 3 lun u64max
PARAM_VALUE 4 rescan 0
CAPPED_DATA 2 id 1
NOCHECK_CALL
UNITS 2 id unit_array_size
HALF_LOCKED2 &pool->lock