XAie_MemAllocate - 2024.1 English - UG1642

AI Engine System Software Driver Reference Manual (UG1642)

Document ID
UG1642
Release Date
2024-05-30
Version
2024.1 English

This is the memory function to allocate a memory.

Prototype

XAie_MemInst * XAie_MemAllocate(XAie_DevInst *DevInst, u64 Size, XAie_MemCacheProp Cache);

Parameters

The following table lists the XAie_MemAllocate function arguments.

Table 1. XAie_MemAllocate Arguments
Type Member Description
XAie_DevInst * DevInst Device Instance
u64 Size Size of the memory
XAie_MemCacheProp Cache Buffer to be cacheable or not

Returns

Pointer to the allocated memory instance.