struct scsi_device * scsi_add_device (struct Scsi_Host * shost, unsigned int channel, unsigned int id, unsigned int lun);
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)
This call is usually performed internally during a scsi bus scan when a 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.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com).
This documentation was generated with kernel version 2.5.72.