Home |
RTTarget-32 Programming Manual Function RTReserveVirtualAddress Function RTReleaseVirtualAddress Function RTAllocPhysPageAligned Function RTGetProcessPhysMemHeap System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTReserveVirtualAddressFunction RTReserveVirtualAddress allocates a virtual address range: int RTReserveVirtualAddress(void ** Virtual, unsigned Bytes, unsigned Flags); ParametersVirtualA pointer to a pointer containing the address of the virtual address space. *Virtual should be initialized by the application before RTReserveVirtualAddress is called to supply a preferred virtual address. If this address is available, it will be used. Otherwise, if RT_MAP_NO_RELOCATE is not set, RTReserveVirtualAddress scans the virtual address space starting at zero for a free area large enough to satisfy the request. If the original value of *Virtual is not page-aligned, the page offset of *Virtual is always preserved. When this function succeeds, *Virtual contains the address of the reserved address range. BytesSpecifies the size in bytes of the required address range. FlagsSpecifies options. The only flag currently defined is RT_MAP_NO_RELOCATE. It prevents RTReserveVirtualAddress from allocating a different address to *Virtual. return valueCan be one of the following:
Function RTReleaseVirtualAddress
|