2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Add a low memory handler.
9 #include <aros/debug.h>
10 #include <exec/execbase.h>
11 #include <aros/libcall.h>
12 #include <proto/exec.h>
14 /*****************************************************************************
18 AROS_LH1(void, AddMemHandler
,
21 AROS_LHA(struct Interrupt
*, memHandler
, A1
),
24 struct ExecBase
*, SysBase
, 129, Exec
)
27 Add some function to be called if the system is low on memory.
30 memHandler - An Interrupt structure to add to the low memory
45 ******************************************************************************/
48 ASSERT_VALID_PTR(memHandler
);
50 /* Protect the low memory handler list */
52 /* Nothing spectacular: Just add the new node */
53 Enqueue((struct List
*)&SysBase
->ex_MemHandlers
,&memHandler
->is_Node
);