arch/ppc-sam440: oops - found my missing KrnCli/KrnSti implementations
[AROS.git] / rom / dos / freedeviceproc.c
blob4c8225429ee83ebfeaaa24e691d3631d9f4a5a49
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: FreeDeviceProc() - Clean up after calls to GetDeviceProc()
6 Lang: english
7 */
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
13 NAME */
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(void, FreeDeviceProc,
19 /* SYNOPSIS */
20 AROS_LHA(struct DevProc *, dp, D1),
22 /* LOCATION */
23 struct DosLibrary *, DOSBase, 108, Dos)
25 /* FUNCTION
26 FreeDeviceProc() will clean up after a call to GetDeviceProc().
28 INPUTS
29 dp - DevProc structure as returned by GetDeviceProc().
31 RESULT
32 Some memory and other resources returned to the system.
34 NOTES
36 EXAMPLE
38 BUGS
40 SEE ALSO
41 GetDeviceProc()
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 if( dp )
51 if( dp->dvp_Flags & DVPF_UNLOCK )
52 UnLock( dp->dvp_Lock );
53 FreeMem( dp, sizeof(struct DevProc) );
56 AROS_LIBFUNC_EXIT
57 } /* FreeDeviceProc */