scsi_alloc_sdev(9)

scsi_alloc_sdev9

Allocate and setup a scsi_device

Usage

struct scsi_device * scsi_alloc_sdev(struct scsi_target * starget, u64 lun, void * hostdata);

Arguments

starget

which target to allocate a scsi_device for

lun

which lun

hostdata

usually NULL and set by ->slave_alloc instead

Overview

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.

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.