int slave_alloc (struct scsi_device * sdp);
Returns 0 if ok. Any other return is assumed to be an error and the device is ignored.
Returns 0 if ok. Any other return is assumed to be an error and the device is ignored.
Allows the driver to allocate any resources for a device prior to its initial scan. The corresponding scsi device may not exist but the mid level is just about to scan for it (i.e. send and INQUIRY command plus ...). If a device is found then slave_configure will be called while if a device is not found slave_destroy is called. For more details see the hosts.h file.
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.73.