io devinfo_t
Structure
The devinfo_t
structure provides information about a device. The devinfo_t
structure corresponding to the destination device of an I/O is pointed to by args[1]
in the start
, done
, wait-start
, and wait-done
probes. The members of devinfo_t
are as follows:
typedef struct devinfo { int dev_major; /* major number */ int dev_minor; /* minor number */ int dev_instance; /* instance number */ string dev_name; /* name of device */ string dev_statname; /* name of device + instance/minor */ string dev_pathname; /* path name of device */ } devinfo_t;
The dev_major
field is the major number of the device. See getmajor(9F) for more information.
The dev_minor
field is the minor number of the device. See getminor(9F) for more information.
The dev_instance
field is the instance number of the device. The instance of a device is different from the minor number. The minor number is an abstraction managed by the device driver. The instance number is a property of the device node. You can display device node instance numbers with prtconf
command. For more information, see the prtconf
(8) man page.
The dev_name
field is the name of the device driver that manages the device. You can display device driver names with the -D
option to prtconf(8).
The dev_statname
field is the name of the device as reported by iostat
. This name also corresponds to the name of a kernel statistic as reported by the kstat2
command. This field is provided so that aberrant iostat
or kstat2
output can be quickly correlated to actual I/O activity. For more information, see the kstat2
(9S) man page.
The dev_pathname
field is the full path of the device. This path may be specified as an argument to prtconf
to obtain detailed device information. The path specified by dev_pathname
includes components expressing the device node, the instance number, and the minor node. However, all three of these elements are not necessarily expressed in the statistics name. For some devices, the statistics name consists of the device name and the instance number. For other devices, the name consists of the device name and the number of the minor node. As a result, two devices that have the same dev_statname
may differ in dev_pathname
.