Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/scsi/scsi_scan.c __scsi_add_device() -> scsi_host_scan_allowed()

Type Parameter Key Value
PARAM_VALUE 0 shost 4096-ptr_max
BUF_SIZE 0 shost s32min-(-1),1-s32max
BUF_SIZE 0 shost s32min-(-1),1-s32max
BUF_SIZE 0 shost->hostt (-1),360
CAPPED_DATA 0 &shost->scan_mutex 1
DATA_SOURCE 0 shost $0
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 shost->irq 0-255
NO_OVERFLOW_SIMPLE 0 shost->pseudo_sdev->request_queue->async_depth
NO_OVERFLOW_SIMPLE 0 shost->pseudo_sdev->request_queue->limits.max_discard_sectors
NO_OVERFLOW_SIMPLE 0 shost->pseudo_sdev->request_queue->limits.max_open_zones
NO_OVERFLOW_SIMPLE 0 shost->pseudo_sdev->request_queue->nr_hw_queues
NO_OVERFLOW_SIMPLE 0 shost->pseudo_sdev->request_queue->nr_requests
UNITS 0 shost unit_byte
LOCK2 0 &shost->scan_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/scsi/scsi_scan.c scsi_get_pseudo_sdev() -> scsi_host_scan_allowed()

Type Parameter Key Value
PARAM_VALUE 0 shost 4096-ptr_max
BUF_SIZE 0 shost->dma_dev (-1),1616
BUF_SIZE 0 shost->shost_data s32min-(-1),1-s32max
BUF_SIZE 0 shost->work_q (-1),512,528-8720
CAPPED_DATA 0 shost->cmd_per_lun 1
CAPPED_DATA 0 shost->hostt 1
DATA_SOURCE 0 shost $0
MEM_ZERO 0 &shost->tag_set
LOCK2 _T->lock

drivers/scsi/scsi_scan.c scsi_scan_host_selected() -> scsi_host_scan_allowed()

Type Parameter Key Value
PARAM_VALUE 0 shost 4096-ptr_max
BUF_SIZE 0 shost (-1),4520-s32max
BUF_SIZE 0 shost (-1),4520-s32max
CAPPED_DATA 0 &shost->scan_mutex 1
DATA_SOURCE 0 shost $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &shost->scan_mutex
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/scsi/scsi_scan.c scsi_scan_target() -> scsi_host_scan_allowed()

Type Parameter Key Value
PARAM_VALUE 0 shost 4096-ptr_max
CAPPED_DATA 0 &shost->scan_mutex 1
DATA_SOURCE 0 shost r dev_to_shost
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &shost->scan_mutex
HALF_LOCKED2 &host->add_target_mutex
HALF_LOCKED2 &ihost->mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &sas_host->lock
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/scsi/scsi_scan.c scsi_sysfs_add_devices() -> scsi_host_scan_allowed()

Type Parameter Key Value
PARAM_VALUE 0 shost 4096-ptr_max
DATA_SOURCE 0 shost $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &shost->scan_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct Scsi_Host)->scan_mutex