PHW_ADAPTER_STATE routine

The PHW_INITIALIZE routine prototype declares a routine that saves or restores the state of the miniport driver's HBA.

Syntax


typedef BOOLEAN (*PHW_ADAPTER_STATE)(
  _In_  PVOID DeviceExtension ,
  _In_  PVOID Context,
  _In_  BOOLEAN SaveState
);

Parameters

DeviceExtension [in]

Pointer to the miniport driver's per-HBA storage area.

Context [in]

Reserved for system use.

SaveState [in]

Indicates, when TRUE, that the miniport driver should save the current state of the HBA until the HwScsiAdapterState routine is called again with SaveState set to FALSE to restore the saved state.

Return value

The routine declared by this prototype returns TRUE if it successfully saved or restored the HBA state, FALSE otherwise.

Remarks

Only SCSI miniport drivers use this prototype. Miniport drivers that work with the StorPort driver do not use the routine that is declared by this prototype.

For more information about the routine declared by this prototype, see HwScsiAdapterState.

Requirements

Header

Srb.h (include Storport.h, Srb.h, or Storport.h)

See also

HwScsiAdapterState

 

 

Send comments about this topic to Microsoft

Anzeigen:
© 2014 Microsoft