1SCSI_ALLOC_TARGET(9) SCSI mid layer SCSI_ALLOC_TARGET(9)
2
3
4
6 scsi_alloc_target - allocate a new or find an existing target
7
9 struct scsi_target * scsi_alloc_target(struct device * parent,
10 int channel, uint id);
11
13 parent
14 parent of the target (need not be a scsi host)
15
16 channel
17 target channel number (zero if no channels)
18
19 id
20 target id number
21
23 Return an existing target if one exists, provided it hasn't already
24 gone into STARGET_DEL state, otherwise allocate a new target.
25
26 The target is returned with an incremented reference, so the caller is
27 responsible for both reaping and doing a last put
28
30 James Bottomley <James.Bottomley@hansenpartnership.com>
31 Author.
32
33 Rob Landley <rob@landley.net>
34 Author.
35
37Kernel Hackers Manual 3.10 June 2019 SCSI_ALLOC_TARGET(9)