共用方式為


HwScsiResetBus routine

HwScsiResetBus resets a given SCSI bus.

Note  The SCSI port driver and SCSI miniport driver models may be altered or unavailable in the future. Instead, we recommend using the Storport driver and Storport miniport driver models.

 

Syntax

PHW_RESET_BUS HwScsiResetBus;

BOOLEAN HwScsiResetBus(
  _In_ PVOID DeviceExtension,
  _In_ ULONG PathId
)
{ ... }

Parameters

  • DeviceExtension [in]
    Points to the miniport driver's per-HBA storage area.

  • PathId [in]
    Identifies the SCSI bus to be reset.

Return value

If the bus is successfully reset, HwScsiResetBus returns TRUE.

Remarks

HwScsiResetBus can be called even if the miniport driver is not ready for another request. The miniport driver should complete all pending requests and must reset the given bus.

HwScsiResetBus need not call ScsiPortNotification to indicate that the bus was reset.

The name HwScsiResetBus is just a placeholder. The actual prototype of this routine is defined in srb.h as follows:

typedef
BOOLEAN
(*PHW_RESET_BUS) (
  IN PVOID  DeviceExtension,
  IN ULONG  PathId
  );

For more information about the HwScsiResetBus routine, see SCSI Miniport Driver's HwScsiResetBus Routine.

Requirements

Target platform

Desktop

Header

Miniport.h (include Scsi.h)

See also

ScsiPortCompleteRequest

ScsiPortNotification

 

 

Send comments about this topic to Microsoft