SLAVE_ALLOC

Section: (9)
Updated: 17 July 2003
Index Return to Main Contents

 

NAME

slave_alloc - prior to any commands being sent to a new device  

SYNOPSIS

int slave_alloc (struct scsi_device * sdp);  

ARGUMENTS

sdp
pointer to new device (about to be scanned)
 

DESCRIPTION

Returns 0 if ok. Any other return is assumed to be an error and the device is ignored.  

DESCRIPTION

Returns 0 if ok. Any other return is assumed to be an error and the device is ignored.  

REQUIRED

no  

LOCKS

none  

NOTES

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.  

DEFINED IN

LLD  

ABOUT THIS DOCUMENT

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DESCRIPTION
REQUIRED
LOCKS
NOTES
DEFINED IN
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 02:52:21 GMT, July 17, 2003