Open a device for use
Source position: exec.pas line 1257
function OpenDevice( |
const devName: pCHAR; |
unite: LongWord; |
ioRequest: pIORequest; |
flags: LongWord |
):ShortInt; |
const devName: string; |
unite: LongWord; |
ioRequest: pIORequest; |
flags: LongWord |
):ShortInt; |
devName |
|
Requested device name |
unite |
|
The unit number to open on that device. The format of the unit number is device specific. If the device does not have separate units, send a zero. |
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.
devName |
|
Requested device name |
unite |
|
The unit number to open on that device. The format of the unit number is device specific. If the device does not have separate units, send a zero. |
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. |
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 |