2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
7 #include <proto/exec.h>
8 #include <exec/memory.h>
10 #include "partition_intern.h"
11 #include "partition_support.h"
14 /*****************************************************************************
17 #include <libraries/partition.h>
19 AROS_LH1(void, CloseRootPartition
,
22 AROS_LHA(struct PartitionHandle
*, ph
, A1
),
25 struct Library
*, PartitionBase
, 6, Partition
)
28 close root handle allocated by OpenRootPartition()
31 ph - root handle created by OpenRootPartition()
46 21-02-02 first version
48 *****************************************************************************/
54 struct PTFunctionTable
*handler
= ph
->table
->handler
;
56 if (handler
->closePartitionTable
)
57 handler
->closePartitionTable(PartitionBase
, ph
);
60 CloseDevice((struct IORequest
*)ph
->bd
->ioreq
);
61 DeleteIORequest((struct IORequest
*)ph
->bd
->ioreq
);
62 DeleteMsgPort(ph
->bd
->port
);
63 FreeMem(ph
->bd
, sizeof(struct PartitionBlockDevice
));
64 FreeMem(ph
, sizeof(struct PartitionHandle
));