Allocates memory from a private memory pool.
void *AllocMemFromMemList( MemList *ml, int32 size, uint32 memflags)
A task can do its own memory management by creating one or more private memory lists. Use this procedure to allocate a memory block from a private memory list.
Note: Most applications do not need to do their own memory management. When you use standard memory-allocation procedures like AllocMem()
, the details of memory management are handled for you by the kernel.
To create a private memory list, use the AllocMemList()
procedure.
The procedure returns a pointer to the allocated memory or NULL if the memory couldn't be allocated.
Folio call implemented in kernel folio V20.
To free a memory block allocated with AllocMemFromMemList()
, use the FreeMemToMemList()
procedure.
AllocMemList
(), FreeMemToMemList()