[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

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

Parameter Description
device_name Character pointer to the name of the device.

Return Value

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.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]