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

diag_get_device_flag

Purpose

Obtain device flag from residual data information.

Syntax

#include    <diag/diag.h>
#include    <sys/residual.h>

int  diag_get_device_flag (
                                 char            *device_name,
                                 long            *Flag)

Description

The diag_get_device_flag subroutine searches residual data for an object matching the device specified by device_name. The value of the Flags field as defined in the DEVICE_ID structure for the device is returned in the Flag argument.

Parameters

device_name Pointer to a character string containing the logical name of the device.
Flag Pointer to a long integer where the value of the Flag field in the DEVICE_ID structure as defined by sys/residual.h header file will be written.

Return Value

Upon successful completion, a 0 is returned if the device flag information was retrieved successfully. If the diag_get_device_flag fails, a value of -1 is returned.


[ Previous | Next | Contents | Home | Search ]