2 Copyright © 1995-2007, 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 *****************************************************************************/
51 if( dp
->dvp_Flags
& DVPF_UNLOCK
)
52 UnLock( dp
->dvp_Lock
);
53 FreeMem( dp
, sizeof(struct DevProc
) );
57 } /* FreeDeviceProc */