Obtain device flag from residual data information.
#include <diag/diag.h>
#include <sys/residual.h>
int diag_get_device_flag (
char *device_name,
long *Flag)
The diag_get_device_flagsubroutine searches residual data for an object matching the devicespecified by device_name. The value of the Flags field asdefined in the DEVICE_ID structure for the device is returned inthe Flag argument.
POWER-based
Upon successful completion, a 0 isreturned if the device flag information was retrieved successfully. If thediag_get_device_flag fails, a value of -1 is returned.