SCSI_INQUIRY_DATA structure (ntddscsi.h)
The SCSI_INQUIRY_DATA structure is used in conjunction with the IOCTL_SCSI_GET_INQUIRY_DATA request to retrieve the SCSI inquiry data for all devices on a given SCSI bus.
Syntax
typedef struct _SCSI_INQUIRY_DATA {
UCHAR PathId;
UCHAR TargetId;
UCHAR Lun;
BOOLEAN DeviceClaimed;
ULONG InquiryDataLength;
ULONG NextInquiryDataOffset;
UCHAR InquiryData[1];
} SCSI_INQUIRY_DATA, *PSCSI_INQUIRY_DATA;
Members
PathId
Indicates the number of the bus the device is located on.
TargetId
Indicates the number of the device on the bus.
Lun
Indicates the logical unit number of the logical unit on the target device.
DeviceClaimed
When TRUE, indicates that the device has been claimed by a class driver.
InquiryDataLength
Indicates the length in bytes of inquiry data.
NextInquiryDataOffset
Contains an offset to the inquiry data for the next logical unit on the target device.
InquiryData[1]
Pointer to buffer containing the inquiry data for the logical unit.
Remarks
The IOCTL_SCSI_GET_INQUIRY_DATA request retrieves inquiry data for all devices associated with a specified adapter. An adapter can potentially have multiple buses. The PathId member identifies the bus. Each bus can have multiple target devices. The TargetId member identifies the target device, and each target device can have multiple logical units. The Lun member identifies the logical unit.
Requirements
Requirement | Value |
---|---|
Header | ntddscsi.h (include Ntddscsi.h) |