scsi_alloc_target(9)

scsi_alloc_target9

Allocate a new or find an existing target

Usage

struct scsi_target * scsi_alloc_target(struct device * parent, int channel, uint id);

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

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.