Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 starget 4096-ptr_max
PARAM_VALUE 0 starget->reap_ref.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 1 lun u64max
PARAM_VALUE 2 hostdata 0
BUF_SIZE 0 starget s32min-s32max
CAPPED_DATA 0 starget->channel 1
DATA_SOURCE 0 starget r scsi_alloc_target
LOCK2 _T->lock

drivers/scsi/scsi_scan.c scsi_probe_and_add_lun() -> scsi_alloc_sdev()

Type Parameter Key Value
PARAM_VALUE 0 starget 4096-ptr_max
PARAM_VALUE 0 starget->dev.parent 4096-ptr_max
PARAM_VALUE 0 starget->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 starget->reap_ref.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 2 hostdata 0,4096-ptr_max
DATA_SOURCE 0 starget $0
DATA_SOURCE 1 lun $1
DATA_SOURCE 2 hostdata $5
NOSPEC 0 starget->channel
NOSPEC 0 starget->id
NOSPEC 1 lun
NOSPEC 1 lun
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 starget->channel 1-s32max[c]
USER_DATA 0 starget->id 0-s32max[c]
USER_DATA 1 lun 0-18446744073709551614[c]
LOCK2 &shost->scan_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex

drivers/scsi/scsi_scan.c scsi_report_lun_scan() -> scsi_alloc_sdev()

Type Parameter Key Value
PARAM_VALUE 0 starget 4096-ptr_max
PARAM_VALUE 0 starget->dev.parent 4096-ptr_max
PARAM_VALUE 0 starget->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 starget->no_report_luns 0
PARAM_VALUE 0 starget->reap_ref.refcount.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 starget->scsi_level 0,3-255
PARAM_VALUE 1 lun 0
PARAM_VALUE 2 hostdata 0
DATA_SOURCE 0 starget $0
FUZZY_MAX 0 starget->scsi_level 3
NOSPEC 0 starget->channel
NOSPEC 0 starget->id
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 starget->channel 1-s32max[c]
USER_DATA 0 starget->id 0-s32max[c]
LOCK2 &shost->scan_mutex
HALF_LOCKED2 &of->mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex