Skip to main content

ApuAlloc

Allocates APU physical memory.

Syntax

Parameters

virtualAddress   _Result_nullonfailure_ _Outptr_result_bytebuffer_(sizeInBytes)
Type: void**
Virtual address returned. physicalAddress   _Result_zeroonfailure_ _Out_opt_
Type: APU_ADDRESS*
APU_ADDRESS returned; for use with the APU. sizeInBytes   _In_
Type: UINT32
Size of the allocation, in bytes. alignmentInBytes   _In_
Type: UINT32
Alignment, in bytes. Must be a power of 2 and greater than or equal to 4. flags
Type: UINT32
Allocation flag: APU_ALLOC_CACHED or APU_ALLOC_NONCACHED.

Return value

Type: HRESULT This method can return the following values:

Remarks

The virtual and physical addresses that are returned represent different views of the same address space. Freeing one invalidates the other. To free an allocation, use ApuFree.

Requirements

Header: apu.h Library: acphal.lib Supported platforms: XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

ApuFree
APU
Last modified on August 20, 2026