Returns the device's current configuration status.
#include <sys/cfgdb.h> int get_device_status ( device_name ) char * device_name;
The get_device_status subroutine returns the current device configuration status. The status is obtained by returning the value of the CuDv status field of the device.
| Parameter | Description |
|---|---|
| device_name | Character pointer to the name of the device. |
The get_device_status subroutine returns one of the following values:
| Return Value | Description |
|---|---|
| DEFINED | Device is in the DEFINED state. |
| AVAILABLE | Device is in the AVAILABLE state. |
| STOPPED | Device is in the STOPPED state. |
| DIAGNOSE | Device is in the DIAGNOSE state. |
| -1 | System error obtaining device status. |