RxMapSystemBuffer function (rxprocs.h)

RxMapSystemBuffer returns the system buffer address from the IRP.

Syntax

PVOID RxMapSystemBuffer(
  [in] IN PRX_CONTEXT RxContext,
  [in] IN PIRP        Irp
);

Parameters

[in] RxContext

A pointer to the RX_CONTEXT structure for this request.

[in] Irp

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

Requirement Value
Target Platform Desktop
Header rxprocs.h (include Rxcontx.h, Rxprocs.h)
IRQL <= APC_LEVEL

See also

MmGetSystemAddressForMdlSafe

RX_CONTEXT

RxLowIoCompletion

RxLowIoGetBufferAddress

RxNewMapUserBuffer