IOCINFO for SAS Adapters
This operation allows a SAS device driver to obtain important information about a SAS adapter, such as the maximum data-transfer size in bytes of the adapter.
By knowing the maximum data transfer size, a SAS device driver
can control several different devices on several different adapters.
This operation returns a devinfo structure as defined in the sys/devinfo.h header
file with the DD_BUS device type and the DS_SAS subtype.
The following example shows a call to obtain the information:
rc = fp_ioctl(fp, IOCINFO, &infostruct, NULL);
where the fp parameter points to a file structure
and the infostruct parameter is a devinfo structure.
A nonzero rc value indicates an error. The devinfo structure
is a union of several structures and the sas structure applies
to the adapter. For example, the maximum transfer-size value is contained
in the infostruct.un.sas.max_transfer variable.