Hardware Dev Center

StorPortGetOriginalMdl routine

The StorPortGetOriginalMdl routine returns the MDL associated with the given SRB.

Syntax


ULONG StorPortGetOriginalMdl(
  _In_  PVOID               HwDeviceExtension,
  _In_  PSCSI_REQUEST_BLOCK Srb,
  _Out_ PVOID               *Mdl
);

Parameters

HwDeviceExtension [in]

A pointer to the hardware device extension for the host bus adapter (HBA).

Srb [in]

A pointer to a SCSI_REQUEST_BLOCK structure.

Mdl [out]

A pointer to receive the MDL.

Return value

StorPortGetOriginalMdl returns one of the following status codes:

Return codeDescription
STOR_STATUS_NOT_IMPLEMENTED

This function is not implemented on the active operating system.

STOR_STATUS_SUCCESS

Indicates that the MDL was obtained successfully.

STOR_STATUS_INVALID_PARAMETER

The pointer in Mdl receiving the SRB's MDL is NULL.

 

Remarks

Starting in Windows 8, the Srb parameter may point to either SCSI_REQUEST_BLOCK or STORAGE_REQUEST_BLOCK. If the function identifier in the Function field of Srb is SRB_FUNCTION_STORAGE_REQUEST_BLOCK, the SRB is a STORAGE_REQUEST_BLOCK request structure.

Requirements

Target platform

Desktop

Header

Storport.h (include Storport.h)

See also

SCSI_REQUEST_BLOCK
STORAGE_REQUEST_BLOCK
StorPortGetSystemAddress

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft