Activates a pheripheral device | |||||
---|---|---|---|---|---|
Syntax |
ACTIVATE device_name [address] |
||||
Description |
Make a device known to the system by including it in the Active Device Table (ADT). It can thereafter be used as a device name in qualified file names. If the optional address is omitted, the file name referenced by the device_name will be located on the appropriate device and loaded if it is a device file (procedure type, subtype 1), has a non-null entry point, and does not overlay protected memory. The amount of memory allocated as a result of loading the file is kept as the SIZE field of the ADT entry for possible later use by the DEACTIVATE command. If the optional address is given, the file is assumed to have been previously loaded in memory. In this case the address parameter is taken as the device entry point. Since the memory bounds are unknown, the SIZE field of the ADT entry is set to a null value (0). In either case, an Initialize I/O request is sent to the device to allow preparation for subsequent request handling. | ||||
I/O-Units |
|
||||
Examples |
%ACTIVATE $MYDOS Locates file 'MYDOS' on the master device using the default drive search sequence. It is then loaded and given an Initialize request. An entry is created in the Active Device Table. %ACTIVATE $MYDOS:4/$MY.LP.DRIVER Locates file 'MY.LP.DRIVER' on device 'MYDOS', drive 4. It is then loaded, an Initialize request sent, and an Active Device Table entry created. %ACTIVATE $MY.PROM.DISK.DRIVER 0BFD Creates an Active Device Table entry using
|
||||
Notes | See DEACTIVATE command. |