SCSI_ADD_DEVICE

Section: (9)
Updated: 09 April 2004
Index Return to Main Contents

 

NAME

scsi_add_device - creates new scsi device (lu) instance  

SYNOPSIS

struct scsi_device * scsi_add_device (struct Scsi_Host * shost, unsigned int channel, unsigned int id, unsigned int lun);  

ARGUMENTS

shost
pointer to scsi host instance
channel
channel number (rarely other than 0)
id
target id number
lun
logical unit number
 

DESCRIPTION

Returns pointer to new struct scsi_device instance or ERR_PTR(-ENODEV) (or some other bent pointer) if something is wrong (e.g. no lu responds at given address)  

MIGHT BLOCK

yes  

NOTES

This call is usually performed internally during a scsi bus scan when an HBA is added (i.e. scsi_add_host). So it should only be called if the HBA becomes aware of a new scsi device (lu) after scsi_add_host has completed. If successful this call we lead to slave_alloc and slave_configure callbacks into the LLD.  

DEFINED IN

drivers/scsi/scsi_scan.c  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
MIGHT BLOCK
NOTES
DEFINED IN
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 09:51:15 GMT, April 09, 2004