The MmGetPhysicalAddress routine returns the physical address corresponding to a valid nonpaged virtual address.
PHYSICAL_ADDRESS MmGetPhysicalAddress( PVOID BaseAddress );
Pointer to the virtual address for which to return the physical address.
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.
Callers of MmGetPhysicalAddress can be running at any IRQL, provided that the BaseAddress value is valid.
|Minimum supported client||Available starting with Windows 2000.|
|Header||ntddk.h (include Ntddk.h)|
|IRQL||Any level (see Remarks section)|