[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Understanding the Diagnostic Subsystem for AIX

get_device_status

Purpose

Returns the device's current configuration status.

Syntax

#include <sys/cfgdb.h>
 
int  get_device_status ( device_name )
char * device_name;

Description

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.

Parameters

device_name Character pointer to the name of the device.

Return Value

The get_device_status subroutine returns one of the following values:

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.

[ Previous | Next | Contents | Home | Search ]