scsi_alloc_target9
Allocate a new or find an existing target
Arguments
parent
parent of the target (need not be a scsi host)
channel
target channel number (zero if no channels)
id
target id number
Overview
Return 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 put
History
- Debian 9 (Stretch): the text shown here
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)
- Debian 5.0 (Lenny)