sdi_init(D3sdi)
sdi_init --
initialize the SDI driver
Synopsis (Not in current SDI version)
#include <sys/sdi.h>
extern int sdi_started;
void sdi_init();
Description
The
sdi_init( )
function
initializes the SDI driver
to accept SDI functions.
The
sdi_started flag is provided so that
a target driver can determine if
another target driver may have
already called the
sdi_init( )
function.
Return values
None
Usage
The system automatically calls the
sdi_init( )
function in all current versions of the SDI interface.
Context and synchronization
Initialization
context.
Applicable hardware
All.
Version applicability
sdi:
1, 2, 3
system drivers.
Differences between versions
Drivers running on UNIX SVR4.2
and earlier releases had to explicitly call this function.
Only one call was required for all
drivers on the system,
so each driver that called this function
first checked that no other driver had already called the function.
Examples
This example shows the sequence of instructions used
to test the
sdi_started( )
function
and call the
sdi_init( )
function:
extern int sdi_started
...
/* Check to see if the Host Adapter driver has
* already been started.
*/
if( !sdi_started )
{
/* Call the Host Adapter driver init routine */
sdi_init();
}
...
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005