scsi_add_lun(9)

scsi_add_lun9

Allocate and fully initialze a scsi_device

Usage

int scsi_add_lun(struct scsi_device * sdev, unsigned char * inq_result, int * bflags, int async);

Arguments

sdev

holds information to be stored in the new scsi_device

inq_result

holds the result of a previous INQUIRY to the LUN

bflags

black/white list flag

async

1 if this device is being scanned asynchronously

Overview

Initialize the scsi_device sdev. Optionally set fields based on values in *bflags.

Return

SCSI_SCAN_NO_RESPONSE: could not allocate or setup a scsi_device SCSI_SCAN_LUN_PRESENT: a new scsi_device was allocated and initialized

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.