Creates a private memory list.
MemList *AllocMemList( const void *p, char *name )
A task can do its own memory management by creating one or more private memory lists. Use this procedure to allocate a private memory list.
A memory list you create with AllocMemList()
is initially empty. To add memory to the list, use the FreeMemToMemList()
procedure.
Note: A single memory list can store either DRAM or VRAM, but not both. The p argument points to an example of the memory the task wants to manage with this MemList.
The procedure returns a pointer to the MemList structure that is created or NULL if an error occurs.
Folio call implemented in kernel folio V20.
To deallocate a memory list created with AllocMemList()
, use FreeMemList()
.
AllocMemFromMemList
(), FreeMemList(), FreeMemToMemList()