MmGetPhysicalAddress - NtDoc

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

PHYSICAL_ADDRESS MmGetPhysicalAddress(
  [in] PVOID BaseAddress
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ntddk-mmgetphysicaladdress)

MmGetPhysicalAddress function

Description

The MmGetPhysicalAddress routine returns the physical address corresponding to a valid nonpaged virtual address.

Parameters

BaseAddress [in]

Pointer to the virtual address for which to return the physical address.

Return value

MmGetPhysicalAddress returns the physical address that corresponds to the given virtual address.

Do not use this routine to obtain physical addresses for use with DMA operations. For information about the proper techniques for performing DMA operations, see Adapter Objects and DMA.

Remarks

Callers of MmGetPhysicalAddress can be running at any IRQL, provided that the BaseAddress value is valid.

See also

MmIsAddressValid

MmIsNonPagedSystemAddressValid

MmMapIoSpace

MmProbeAndLockPages