ScsiPortMoveMemory - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// srb.h

SCSIPORT_API VOID ScsiPortMoveMemory(
  [in] PVOID WriteBuffer,
  [in] PVOID ReadBuffer,
  [in] ULONG Length
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-srb-scsiportmovememory)

ScsiPortMoveMemory function

Description

The ScsiPortMoveMemory routine copies data from one location to another.

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.

Parameters

WriteBuffer [in]

Pointer to the destination buffer.

ReadBuffer [in]

Pointer to the source buffer.

Length [in]

Specifies how many bytes to transfer from ReadBuffer to WriteBuffer.

Return value

None

Remarks

ScsiPortMoveMemory can be called if a miniport driver needs to copy data from one system-allocated area to another. For example, a miniport driver might call ScsiPortMoveMemory to copy pertinent SRB values into the driver's SRB extension.

The (ReadBuffer + Length) can overlap the area pointed to by WriteBuffer.

Each of the given buffer areas must be at least sizeof(Length).