[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'Exec' (#aros)


Allocate many regions of memory


Source position: exec.pas line 1245

function AllocEntry(

  Entry: PMemList





A MemList structure filled in with MemEntry structures.

Function result

A different MemList 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 the requirements of the allocation that failed is returned and bit 31 is set.


This function takes a memList structure and allocates enough memory to hold the required memory as well as a MemList structure to keep track of it.

These MemList structures may be linked together in a task control block to keep track of the total memory usage of this task. (See the description of TC_MEMENTRY under RemTask).

See also



Remove a task from the system

Documentation generated on: 2017-01-10