StorPortGetOriginalMdl function (storport.h)
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
[in] HwDeviceExtension
A pointer to the hardware device extension for the host bus adapter (HBA).
[in] Srb
A pointer to a SCSI_REQUEST_BLOCK structure.
[out] Mdl
A pointer to receive the MDL.
Return value
StorPortGetOriginalMdl returns one of the following status codes:
Return code | Description |
---|---|
|
This function is not implemented on the active operating system. |
|
Indicates that the MDL was obtained successfully. |
|
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
Requirement | Value |
---|---|
Target Platform | Universal |
Header | storport.h (include Storport.h) |