// rxprocs.h
PVOID RxMapSystemBuffer(
[in] IN PRX_CONTEXT RxContext,
[in] IN PIRP Irp
);
View the official Windows Driver Kit DDI referenceNo description available.
RxMapSystemBuffer returns the system buffer address from the IRP.
RxContext [in]A pointer to the RX_CONTEXT structure for this request.
Irp [in]A pointer to the IRP for this request.
RxMapSystemBuffer returns a mapped address pointer.
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.