The IOS Offline Device Service macro provides the interface for authorized code to mark a device offline and in use by a system component.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Supervisor state and key 0. |
Dispatchable unit mode: | Task mode. |
Cross memory mode: | Any PASN, any HASN, any SASN |
AMODE: | 24- or 31-bit |
ASC mode: | Primary |
Interrupt status: | Enabled for I/O and external interrupts. |
Locks: | No locks held. |
Control parameters: | None |
None.
None.
None.
The standard form of the IOSODS macro is written as follows:
Syntax | Description |
---|---|
name | name: symbol. Begin name in column 1. |
␣ | One or more blanks must precede IOSODS. |
IOSODS | |
␣ | One or more blanks must follow IOSODS. |
ON | Default: None. |
[,WLMPAVSUSPEND] | This function is disabled. |
OFF | Default: None. |
[,WLMPAVRESTORE] | This function is disabled. |
,DEVN=devn | devn: RS-type name or address in register (2) - (12). |
[,DEVNCHAR=devnchar] | devnchar: RS-type address or register (2) - (12). |
[SCHSET=schset|0] | Default: 0 |
[,LDEVNCHAR=ldevnchar] | ldevnchar: RS-type address or register (2) - (12). |
[,RETCODE=retcode] | retcode: RS-type name or register (2) - (12). |
[,RSNCODE=rsncode] | rsncode: RS-type name or register (2) - (12). |
[,PLISTVER={plistver | MAX | IMPLIED_VERSION}] | Default: IMPLIED_VERSION |
The parameters are explained as follows:
Default: None.
Default: None.
Default: IMPLIED_VERSION. When PLISTVER is omitted, the default is the lowest version which allows all of the parameters specified on the invocation to be processed.
None.
Return and reason codes, in hexadecimal, from the IOSODS macro are as follows:
Hexadecimal return code | Hexadecimal reason code | Meaning |
---|---|---|
00 | None | The requested function executed successfully. |
08 | 01 | The requested function failed because the input device number was not found. |
08 | 02 | A request to allocate an offline device was made, but it is already in use by a system component (ON function). |
08 | 03 | A request to unallocate a device was made, but the device is not currently in use (OFF function). |
08 | 04 | IOS Path Validation failed (ON function). |
08 | 05 | IOS Dynamic Pathing function failed (OFF function). |
08 | 06 | Allocation service to set UCBNALOC failed (ON function). |
20 | None | An unexpected error occurred. The recovery routine recovered and returned control to the caller. |