## Storage Device Driver Reference

[prev][next][parent][TOC]

### Initialization Routine

This routine is called when the device-class driver is first loaded into the system. This routine performs all initialization required for the device-class driver and the device. At Init time, all calls to the SCSI driver are made through the DosDevIoctl interface. Typically, initialization performs the functions in the following list:

1.Performs a return peripheral device count to determine the count of devices attached.
2.Allocates the device.
3.Queries the device to determine whether it is supported.
4.Sets the return code in the request block.
5.Returns the offsets for the end of the code and data segments.