RxMapSystemBuffer - NtDoc

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

PVOID RxMapSystemBuffer(
  [in] IN PRX_CONTEXT RxContext,
  [in] IN PIRP        Irp
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-rxprocs-rxmapsystembuffer)

RxMapSystemBuffer function

Description

RxMapSystemBuffer returns the system buffer address from the 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.

See also

MmGetSystemAddressForMdlSafe

RX_CONTEXT

RxLowIoCompletion

RxLowIoGetBufferAddress

RxNewMapUserBuffer