When the OS2DASD initializes, it scans .ADD drivers for fixed or removable magnetic devices. For each device found, the driver creates an internal control block that is called a UnitCB.

To access the device, the UnitCB provides the linkage to the corresponding ADD driver and ADD UnitHandle.

When UnitCBs have been created, the driver creates VolCBs to represent each of the following:

VolCBs are linked together to create a unit number ordering system, based on DOS conventions. In addition, VolCBs are linked to their corresponding UnitCB, which provides the information necessary to access the physical device by way of the ADD drivers.

Unit numbers are not equivalent to drive letters. The OS/2 Kernel/FileSystems assigns drive letters. For example, a block device driver cannot demand that a particular set of drive letters be assigned to it.

OS2DASD assigns unit numbers as follows:

80h - 98h

0,1 2-24


[Back: Generic IOCtls]
[Next: BIOS Parameter Block (BPB) Management]