IOCINFO for FCP Adapters
This operation lets an FCP device driver obtain important information about a FCP adapter, including the adapter's SCSI ID, the maximum data transfer size in bytes, and the FC topology to which the adapter is connected.
By knowing the maximum data transfer size, a FCP 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 device type DD_BUS and subtype DS_FCP.
The following is an example of a call to obtain the information:
rc = fp_ioctl(fp, IOCINFO, &infostruct, NULL);
where fp is a pointer to a file structure and infostruct is a devinfo structure. A non-zero rc value indicates an error. Note that the devinfo structure is a union of several structures and that fcp is the structure that applies to the adapter. For example, the maximum transfer size value is contained in the infostruct.un.fcp.max_transfer variable and the card ID is contained in infostruct.un.fcp.scsi_id.