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