THE DIAGNOSE INTERFACE
The diagnose interface,by use of the DIAGNOSE instruction, permits
operatingsystems running in virtual aachines under VM/310 to
communicate easily and efficiently withVM/310. While this topic provides a summary of the diagnose interface
functions, details about how to use theDIAGNOSE instruction to request
these functions are in the!!LJIQ By inserting DIAGNOSE instructions where appropriate in the operating system's code, the following functions can be requested by a virtual machine: Diagnose
Code• Examine the processor's extended identification code. -----0-- • Examine the contents of real storage. 4 • Invoke a virtual console function (that is, a CP command) 8 from the virtual machine operating system. • Obtain, from CP's pseudo timer: C
- Today's date(aa/dd/yy) - The time-of-day (hh:mm:ss) - Virtual and total processor time used by the virtual
machine• Release pages of virtual storage (but not discontiguous 10 storage) • Manipulate an input spool file in one of the following 14
ways:
- Read the next reader, punch, or printer spool data
- Select a new file for processing
- Repeat the active file ntimes - Restart the current file at the beginning
- Backspace one record
- Retrieve the subsequent file descriptor• Perform a standard DASD I/O operation. 18 • Clear the VM/310 I/O error recording area on disk. 1C • Perform a general I/O operation for tape or disk. 20 • Interrogate CP's device type and features control blocks. 24 • Notify CP that a dynamically modified channel program is to
be executed. 28• Locate the start DASD address of the I/O error 2C
recording area (LOGREC).• Read one page of LOGREC data. 30 • Read the VM/310 system dump spool file. 34 10 IBM VM/370 Operating Systems in a Virtual Machine
The diagnose interface,
operating
communicate easily and efficiently with
functions, details about how to use the
these functions are in the
Code
- Today's date
machine
ways:
- Read the next reader, punch, or printer spool data
- Select a new file for processing
- Repeat the active file n
- Backspace one record
- Retrieve the subsequent file descriptor
be executed. 28
recording area (LOGREC).