RtGetPhysicalAddress

RtGetPhysicalAddress returns the physical address for the virtual address of a contiguous physical memory buffer previously allocated by RtAllocateContiguousMemory or RtAllocateContiguousMemorySpecifyCache.

Syntax

Copy
LARGE_INTEGER RtGetPhysicalAddress(
    PVOID pVirtualAddress
);

Parameters

pVirtualAddress

The virtual address of the base of a contiguous memory buffer as returned by RtAllocateContiguousMemory or RtAllocateContiguousMemorySpecifyCache.

Return Value

If the function succeeds, it returns the physical address corresponding to the base virtual address of the contiguous buffer. If the function fails, it returns a NULL pointer(usually the result of an invalid parameter) .

Remarks

RtGetPhysicalAddress allows the user to get the base physical address for a contiguous memory buffer allocated by RtAllocateContiguousMemory or RtAllocateContiguousMemorySpecifyCache. The system physical addresses are eight-byte data types, returned as a LARGE_INTEGER.

This call can be used on any virtual address.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Rtapi.h rtkrnl.lib

See Also: