Articles
Forums
Downloads
Autodocs
Home
/
Autodocs
/
trackdisk.device
NAME
OpenDevice
open a trackdisk unit
SYNOPSIS
OpenDevice( devName, iORequest, UnitNumber, Flags ), DevNode
A0 A1 D0 D1 A6
FUNCTION
Grands access to a specific unit of the trackdisk.device
INPUTS
iORequest
an I/O Request Block that the Open routine should initialize.
UnitNumber
a number between 0 and 3, identifying the drives 0 to 3.
Flags
TDF_ALLOW_NON_3_5: If this flag is set, then the trackdisk.device also opens 5.25" devices otherwise, such drives remain invisible.
RESULT
0 for success, or an error code from <exec/errors.h>
SEE ALSO
<devices/trackdisk.h>, <exec/errors.h>
BUGS
If the unit was already opened anytime before the Flags are ignored and OpenDevice always succeeds.