init routine
The Sram
init(D2osdi)
routine initializes memory for the RAM disk,
sets up some basic information,
and registers the driver with the SCSI subsystem.
The logic is:
-
Call
memget(D3oddi)
to allocate memory for the RAM disk,
then zero it out with
bzero(D3oddi).
-
Set driver-specific pointers to define
the allocated memory.
-
Populate the xx_info structure
with information about this host adapter.
-
Populate the regit structure,
the call
Sharegister(D3osdi)
with a pointer to the regit structure
to register the driver with the SCSI subsystem.
© 2005 The SCO Group, Inc. All rights reserved.