Unit 'Exec' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

AllocEntry

Allocate many regions of memory

Declaration

Source position: exec.pas line 1248

function AllocEntry(

  Entry: PMemList

):PMemList;

Arguments

Entry

  

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.

Description

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

RemTask

  

Remove a task from the system


Documentation generated on: 2021-07-30