Skip to Main Content Skip to Search
Product Documentation

xpcAllocPhysicalMemory - Allocate physical memory

Prototype

void *xpcAllocPhysicalMemory(uint32_T numBytes)

Header File

xpctarget.h

Arguments

numBytes

Allocate specified number of bytes of memory.

Description

The xpcAllocPhysicalMemory function allocates the requested bytes of physical memory. Functions such as malloc only return virtual memory.

xPCAllocPhysicalMemory allocates physical memory, where physical memory is the same as the virtual address. Use this function only for allocations requiring direct access to physical memory, such as those for DMA transfers.

See Also

xpcFreePhysicalMemory

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS