2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Free memory allocated by AllocPooled().
9 #include <aros/libcall.h>
10 #include <exec/memory.h>
11 #include <proto/exec.h>
13 #include "exec_intern.h"
14 #include "exec_util.h"
17 /*****************************************************************************
21 AROS_LH3(void,FreePooled
,
24 AROS_LHA(APTR
, poolHeader
,A0
),
25 AROS_LHA(APTR
, memory
, A1
),
26 AROS_LHA(ULONG
,memSize
, D0
),
29 struct ExecBase
*, SysBase
, 119, Exec
)
32 Free memory allocated out of a private memory pool.
35 poolHeader - Handle of the memory pool
36 memory - Pointer to the memory
37 memSize - Size of the memory chunk
48 CreatePool(), DeletePool(), AllocPooled()
51 In AROS memory allocated from pool remembers where it came from.
52 Because of this poolHeader is effectively ignored and is present
53 only for compatibility reasons. However, do not rely on this! For
54 other operating systems of Amiga(tm) family this is not true!
56 ******************************************************************************/
60 struct TraceLocation tp
= CURRENT_LOCATION("FreePooled");
62 InternalFreePooled(memory
, memSize
, &tp
, SysBase
);