Puts the device under test back to its original state.
#include <diag/diag.h> int diagex_initial_state ( device_name ) char *device_name;
The diagex_initial_state subroutine puts the device, and its children if necessary, back to the original state before the diagex_cfg_state routine was called.
device_name | Name of the device under test. |
The diagex_initial_state subroutine returns one of the following values:
0 | Successful return. |
-1 | Software error. |
4 | Device cannot be restored to DEFINE state. |
5 | Device cannot be restored to AVAILABLE state. |
6 | Child device cannot be restored to original state. |