.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SLAVE_ALLOC" "9" "17 July 2003" "" "" .SH NAME slave_alloc \- prior to any commands being sent to a new device .SH SYNOPSIS .sp \fB .sp int slave_alloc (struct scsi_device * \fIsdp\fB); \fR .SH "ARGUMENTS" .TP \fB\fIsdp\fB\fR pointer to new device (about to be scanned) .SH "DESCRIPTION" .PP Returns 0 if ok. Any other return is assumed to be an error and the device is ignored. .SH "DESCRIPTION" .PP Returns 0 if ok. Any other return is assumed to be an error and the device is ignored. .SH "REQUIRED" .PP no .SH "LOCKS" .PP none .SH "NOTES" .PP 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 \fBslave_configure\fR will be called while if a device is not found \fBslave_destroy\fR is called. For more details see the hosts.h file. .SH "DEFINED IN" .PP LLD .SH "ABOUT THIS DOCUMENT" .PP 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". .PP If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com). .PP This documentation was generated with kernel version 2.5.73.