ScsiPortGetLogicalUnit


PVOID ScsiPortGetLogicalUnit(HwDeviceExtension, PathId, TargetId, Lun)
IN PVOID  HwDeviceExtension;
IN UCHAR  PathId;
IN UCHAR  TargetId;
IN UCHAR  Lun;

Provides access to logical-unit-specific data for a device on the bus.

HwDeviceExtension

Points to the HBA miniport driver's storage for per-adapter data.

PathId

Identifies the SCSI bus.

TargetId

Identifies the target ID on the bus.

Lun

Identifies the logical unit number of the target device.

This storage can be used by the HBA miniport driver to store per-logical-unit data, such as saved data pointers. The storage is initialized to zero.

The OS-specific port driver can consider a logical unit to be unequipped if there is no active request for the logical unit and the device has never been successfully selected.