Home |
RTTarget-32 Programming Manual Function RTReserveVirtualAddress Function RTReleaseVirtualAddress Function RTAllocPhysPageAligned Function RTGetProcessPhysMemHeap Function RTGetPhysAddress System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTGetPhysAddressRTGetPhysAddress translates a virtual address into a physical address: void * RTGetPhysAddress(const void * VirtAddr); Parameter VirtAddr specifies the virtual address to translate. The function returns the corresponding physical address. Warning: Memory blocks which are contiguous in the virtual address space are not guaranteed to be contiguous in the physical address space. If the buffer pointed to by VirtAddr is larger than 1 byte, then it might span a page (4k) boundary, making contiguous access to the buffer impossible in the physical address space. If you need data structures to be contiguous in the physical and virtual address space, use RTGetProcessPhysMemHeap or RTAllocPhysPageAligned to allocate them. This function only supports virtual addresses mapped to a physical address below 4G. Function RTGetPhysAddressEx supports all addresses.
|