2004-01-17 23:07:40 +00:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "lam_config.h"
|
|
|
|
|
|
|
|
#include "lam/util/output.h"
|
|
|
|
#include "mca/mca.h"
|
|
|
|
#include "mca/lam/base/base.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Main MCA shutdown.
|
|
|
|
*/
|
|
|
|
int mca_base_close(void)
|
|
|
|
{
|
2004-01-22 00:37:58 +00:00
|
|
|
extern bool mca_base_opened;
|
|
|
|
if (mca_base_opened) {
|
|
|
|
/* Clear out all the registered MCA params */
|
2004-01-17 23:07:40 +00:00
|
|
|
|
2004-01-22 00:37:58 +00:00
|
|
|
mca_base_param_finalize();
|
2004-01-17 23:07:40 +00:00
|
|
|
|
2004-01-22 00:37:58 +00:00
|
|
|
/* Close down the module registry */
|
2004-01-17 23:07:40 +00:00
|
|
|
|
2004-01-22 00:37:58 +00:00
|
|
|
mca_base_module_registry_finalize();
|
|
|
|
}
|
|
|
|
mca_base_opened = false;
|
2004-01-17 23:07:40 +00:00
|
|
|
|
|
|
|
/* All done */
|
|
|
|
|
|
|
|
return LAM_SUCCESS;
|
|
|
|
}
|