Name
scsi_alloc_sdev —
allocate and setup a scsi_Device
Synopsis
struct scsi_device * scsi_alloc_sdev ( | struct scsi_target * starget, |
| u64 lun, |
| void * hostdata) ; |
Arguments
struct scsi_target * starget
which target to allocate a &scsi_device for
u64 lun
which lun
void * hostdata
usually NULL and set by ->slave_alloc instead
Description
Allocate, initialize for io, and return a pointer to a scsi_Device.
Stores the shost
, channel
, id
, and lun
in the scsi_Device, and
adds scsi_Device to the appropriate list.
Return value:
scsi_Device pointer, or NULL on failure.