The EDTINFO macro enables you to obtain information from the eligible device table (EDT) and to check your device specification against the information in the EDT. See z/OS HCD Planning and z/OS MVS Programming: Assembler Services Guide for further information about the EDT.
For a list of functions performed by the EDTINFO macro for both unauthorized and authorized callers, see z/OS MVS Programming: Assembler Services Reference ABE-HSP.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Supervisor state and any PSW key 0. |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN=HASN=SASN or PASN¬=HASN¬=SASN |
AMODE: | 24- or 31- bit |
ASC mode: | Primary or access register (AR) |
Interrupt status: | Enabled for I/O and external interrupts |
Locks: | No locks held |
Control parameters: | Must be in the primary address space. |
Callers requesting the RTNEDTLT function of the EDTINFO macro must be in 31-bit AMODE to reference the areas returned through the ELTPRI and ELTSEC pointers.
Callers requesting the RTNEDTLT function of the EDTINFO macro are required to free the storage returned through the ELTPRI and ELTSEC pointers.
Callers must be supervisor state and PSW key 0 in order to invoke the RTNEDTLT function.
Before issuing the EDTINFO macro, the caller does not have to place any information into any register unless using it in register notation for a particular parameter, or using it as a base register.
Some callers depend on register contents remaining the same before and after issuing a service. If the system changes the contents of registers on which the caller depends, the caller must save them before issuing the service, and restore them after the system returns control.
None.
The standard form of the EDTINFO macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | One or more blanks must precede EDTINFO. |
EDTINFO | |
␢ | One or more blanks must follow EDTINFO. |
RTNEDTLT | Note: If this function is specified, no other
functions can be requested.
|
,ELTPRI=eltpri | eltpri: RS-type address or register (2) - (12). |
,ELTSEC=eltsec | eltsec: RS-type address or register (2) - (12). |
,RETCODE=retcode | retcode: RX-type address or register (2) - (12). |
,RSNCODE=rsncode | rsncode: RX-type address or register (2) - (12). |
The parameters are explained as follows:
When control returns from EDTINFO, GPR 15 (and retcode addr, if you coded RETCODE) contains one of the following hexadecimal return codes:
Return Code | Meaning |
---|---|
00 | The requested function or functions were performed and no reason code information has been returned. |
04 | The requested function or functions were performed
and information has been returned, as explained by the hexadecimal
reason code that accompanies this return code. The reason code is
in GPR 0 (and in rsncode, if you coded RSNCODE).
|
08 | There is data in the input parameter list that
is not valid, as explained by the hexadecimal reason code that accompanies
this return code. The reason code is in GPR 0 (and in rsncode,
if you coded RSNCODE).
|
10 | Storage could not be obtained for the request. |
18 | An unexpected system error occurred. |
EDTINFO RTNEDTLT,ELTPRI=PRI_ELT_PTR,ELTSEC=SEC_ELT_PTR