2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Remove a memory handler.
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 #include "exec_intern.h"
14 /*****************************************************************************
18 AROS_LH1(void, RemMemHandler
,
21 AROS_LHA(struct Interrupt
*, memHandler
, A1
),
24 struct ExecBase
*, SysBase
, 130, Exec
)
27 Remove some function added with AddMemHandler again.
30 memHandler - The same Interrupt structure you gave to AddMemHandler().
44 ******************************************************************************/
48 /* Protect the low memory handler list */
49 ObtainSemaphore(&PrivExecBase(SysBase
)->LowMemSem
);
51 /* Nothing spectacular: Just remove node */
52 Remove(&memHandler
->is_Node
);
54 ReleaseSemaphore(&PrivExecBase(SysBase
)->LowMemSem
);