ScsiPortMoveMemory routine

The ScsiPortMoveMemory routine copies data from one location to another.

Syntax


VOID ScsiPortMoveMemory(
  _In_ PVOID WriteBuffer,
  _In_ PVOID ReadBuffer,
  _In_ ULONG Length
);

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).

Requirements

Target platform

Universal

Header

Srb.h

Library

Storport.lib

 

 

Send comments about this topic to Microsoft

Show: