Function Memory.allocEntry
AllocEntry -- Alloc memory with MemEntries structure
This function takes a memList structure and allocates enough memory to hold the required memory as well as a MemEntries structure to keep track of it.
These MemEntries structures may be linked together in a Process_s to keep track of the total memory usage of this task. (See the description of under RemTask() ).
Parameters
Name | Description |
---|---|
entry | A MemEntries structure filled in with MemEntry structures. |
Returns
memList = A different MemEntries filled in with the actual memory allocated in the me_Addr field, and their sizes in me_Length. If enough memory cannot be obtained, then any memory already allocated will be freed, and null is returned.
See
FreeEntry(), CreateMemList(), DeleteMemList()