Query: scsi_alloc_target
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SCSI_ALLOC_TARGET(9) SCSI mid layer SCSI_ALLOC_TARGET(9)NAMEscsi_alloc_target - allocate a new or find an existing targetSYNOPSISstruct scsi_target * scsi_alloc_target(struct device * parent, int channel, uint id);ARGUMENTSparent parent of the target (need not be a scsi host) channel target channel number (zero if no channels) id target id numberDESCRIPTIONReturn an existing target if one exists, provided it hasn't already gone into STARGET_DEL state, otherwise allocate a new target. The target is returned with an incremented reference, so the caller is responsible for both reaping and doing a last putAUTHORSJames Bottomley <James.Bottomley@hansenpartnership.com> Author. Rob Landley <rob@landley.net> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 SCSI_ALLOC_TARGET(9)