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_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.
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.