IOCINFO for Virtual SCSI Adapters
This operation lets a Virtual SCSI device driver obtain important information about a Virtual SCSI adapter, including the adapter's maximum data transfer size in bytes.
This information is determined by the Virtual SCSI server driver.
By knowing the maximum data transfer size, a Virtual SCSI device driver
can control several different devices on several different adapter
instances. This operation returns a devinfo structure
as defined in the sys/devinfo.h header file
with the device type DD_BUS and subtype DS_CVSCSI.
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. The devinfo structure
is a union of several structures and Virtual SCSI is the structure
that applies to the adapter. For example, the maximum transfer size
value is contained in the infostruct.un.vscsi.max_transfer variable.