Export (0) Print
Expand All
Expand Minimize

RxMapSystemBuffer function

RxMapSystemBuffer returns the system buffer address from the IRP.

Syntax


PVOID RxMapSystemBuffer(
  _In_  PRX_CONTEXT RxContext,
  _In_  PIRP Irp
);

Parameters

RxContext [in]

A pointer to the RX_CONTEXT structure for this request.

Irp [in]

A pointer to the IRP for this request.

Return value

RxMapSystemBuffer returns a mapped address pointer.

Remarks

The RxMapSystemBuffer routine checks that Irp->MdlAddress is not NULL and returns the Irp->AssociatedIrp.SystemBuffer when this is the case.

On retail builds, RxMapSystemBuffer will call MmGetSystemAddressForMdlSafe to return the MDL from the IRP if Irp->MdlAddress is NULL. On checked builds, RxMapSystemBuffer causes the system to ASSERT if Irp->MdlAddress is NULL.

Requirements

Header

Rxprocs.h (include Rxcontx.h or Rxprocs.h)

IRQL

<= APC_LEVEL

See also

MmGetSystemAddressForMdlSafe
RxLowIoCompletion
RxLowIoGetBufferAddress
RxNewMapUserBuffer
RX_CONTEXT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft