2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: FreeDeviceProc() - Clean up after calls to GetDeviceProc()
8 #include "dos_intern.h"
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <dos/dosextens.h>
15 #include <proto/dos.h>
17 AROS_LH1(void, FreeDeviceProc
,
20 AROS_LHA(struct DevProc
*, dp
, D1
),
23 struct DosLibrary
*, DOSBase
, 108, Dos
)
26 FreeDeviceProc() will clean up after a call to GetDeviceProc().
29 dp - DevProc structure as returned by GetDeviceProc().
32 Some memory and other resources returned to the system.
45 *****************************************************************************/
48 AROS_LIBBASE_EXT_DECL(struct DosLibrary
*,DOSBase
)
52 if( dp
->dvp_Flags
& DVPF_UNLOCK
)
53 UnLock( dp
->dvp_Lock
);
54 FreeMem( dp
, sizeof(struct DevProc
) );
58 } /* FreeDeviceProc */