Guardian Programmer's Guide

Table Of Contents
Communicating With Devices
Guardian Programmer’s Guide 421922-014
9 - 5
Getting Device Information
Getting Device Information
On D-series systems, you can obtain detailed information about devices either by
supplying a logical device number to the DEVICE_GETINFOBYLDEV_ procedure or
by supplying a device name to the DEVICE_GETINFOBYNAME_ procedure.
DEVICE_GETINFOBYLDEV_ also has the option of searching for the next logical
device number above the one specified.
On G-series systems, you can use CONFIG_GETINFO_BYNAME2_ and
CONFIG_GETINFO_BYLDEV2_ procedures, respectively.
The information returned by each pair of procedures is similar. In either case, you can
obtain logical device information or physical device information about the primary and
backup I/O processes.
Logical information returned by the device-information procedures includes (but is not
limited to) the following:
The logical device number of the device for which information is being returned.
This information is most useful when using the search option of the
DEVICE_GETINFOBYLDEV_ procedure.
The CPU number and process identification number (PIN) for the primary and
backup I/O processes that control access to the specified device.
The device type and subtype.
For a complete list of logical information, see the Guardian Procedure Calls Reference
Manual.
Physical information returned for the primary and backup I/O processes includes (but is
not limited to):
A file-system error number returned by the I/O process.
Subtype information about both halves of a mirrored disk.
Path information about each potential path to the I/O device, indicating whether the
path is currently configured, whether it is currently in use by the I/O process, and
its operational status.
For a complete list of physical information, see the Gu
ardian Procedure Calls
Reference Manual.
The following example uses the DEVICE_GETINFOBYLDEV_ procedure to return
logical and physical information about all configured devices. It does this by searching
on a logical device number as indicated earlier. To do this, you set bit 15 of the
options parameter to 1.