Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/scsi/scsi_proc.c proc_print_scsidevice() -> scsi_device_type()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sfile->lock
TYPE_LOCK (struct seq_file)->lock

drivers/target/target_core_pscsi.c pscsi_create_type_nondisk() -> scsi_device_type()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 sh->host_lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem

drivers/scsi/megaraid.c mega_print_inquiry() -> scsi_device_type()

Type Parameter Key Value
PARAM_VALUE 0 type 0-31
RX_PATH
TASK_NOT_RUNNING
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/scsi/hpsa.c hpsa_show_dev_msg() -> scsi_device_type()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &h->devlock
HALF_LOCKED2 flags

drivers/scsi/hpsa.c hpsa_update_device_info() -> scsi_device_type()

Type Parameter Key Value
PARAM_VALUE 0 type 0-31
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pool->lock

drivers/scsi/hpsa.c path_info_show() -> scsi_device_type()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 type unit_array_size
LOCK2 &h->devlock
LOCK2 &of->mutex
LOCK2 flags
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct ctlr_info)->devlock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/smartpqi/smartpqi_init.c pqi_device_type() -> scsi_device_type()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctrl_info->lun_reset_mutex
HALF_LOCKED2 &ctrl_info->scan_mutex
HALF_LOCKED2 &shost->scan_mutex

drivers/scsi/smartpqi/smartpqi_init.c pqi_path_info_show() -> scsi_device_type()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 0 type unit_array_size
LOCK2 &ctrl_info->scsi_device_list_lock
LOCK2 &of->mutex
LOCK2 flags
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct pqi_ctrl_info)->scsi_device_list_lock

drivers/scsi/scsi_scan.c scsi_add_lun() -> scsi_device_type()

Type Parameter Key Value
PARAM_VALUE 0 type 0-31
FUZZY_MAX 0 type 30
RX_PATH
TASK_NOT_RUNNING
LOCK2 &shost->scan_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/target/target_core_device.c scsi_dump_inquiry() -> scsi_device_type()

Type Parameter Key Value
PARAM_VALUE 0 type 0-255
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 sh->host_lock