Test current SDI headers.
[AROS.git] / rom / exec / remmemhandler.c
blob67a312056ca7d11a24d1b2e4f9b4e2231d035b5e
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Remove a memory handler.
6 Lang: english
7 */
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 #include "exec_intern.h"
14 /*****************************************************************************
16 NAME */
18 AROS_LH1(void, RemMemHandler,
20 /* SYNOPSIS */
21 AROS_LHA(struct Interrupt *, memHandler, A1),
23 /* LOCATION */
24 struct ExecBase *, SysBase, 130, Exec)
26 /* FUNCTION
27 Remove some function added with AddMemHandler again.
29 INPUTS
30 memHandler - The same Interrupt structure you gave to AddMemHandler().
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
42 INTERNALS
44 ******************************************************************************/
46 AROS_LIBFUNC_INIT
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);
56 AROS_LIBFUNC_EXIT
57 } /* RemMemHandler */