Open a device for use
Source position: exec.pas line 1989
function OpenDevice( |
devName: PChar; |
numunit: Cardinal; |
ioRequest: PIORequest; |
flags: Cardinal |
):ShortInt; |
devName |
|
Requested device name |
ioRequest |
|
The I/O request block to be returned with appropriate fields initialized. |
flags |
|
An additional driver specific information. This is sometimes used to request opening a device with exclusive access. |
Returns a sign-extended copy of the io_Error field of the IORequest. Zero if successful, else an error code is returned.
This function opens the named device/unit and initializes the given I/O request block. Specific documentation on opening procedures may come with certain devices.
The device may exist in memory, or on disk; this is transparent to the OpenDevice caller.
A full path name for the device name is legitimate. For example "test:devs/fred.device". This allows the use of custom devices without requiring the user to copy the device into the system's DEVS: directory.
|
Close access to a device. |
|
|
Perform an I/O request and wait for its finish |
|
|
Initiate an I/O command |
|
|
Check status on an I/O request |
|
|
Attempt to abort an in-progress I/O request |
|
|
Wait for completion of an I/O request |