2005-09-04 04:17:00 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-09-04 04:17:00 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
*/
|
2005-09-07 20:21:15 +00:00
|
|
|
#ifndef MCA_RCACHE_BASE_H
|
|
|
|
#define MCA_RCACHE_BASE_H
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
|
|
|
#include "opal/class/opal_list.h"
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "ompi/class/ompi_rb_tree.h"
|
|
|
|
#include "opal/mca/mca.h"
|
|
|
|
#include "ompi/mca/rcache/rcache.h"
|
2005-09-04 04:17:00 +00:00
|
|
|
#include "opal/threads/mutex.h"
|
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
/*
|
|
|
|
* create a module by name
|
|
|
|
*/
|
2005-12-10 21:59:06 +00:00
|
|
|
OMPI_DECLSPEC mca_rcache_base_module_t* mca_rcache_base_module_create(const char* name);
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
/*
|
2005-09-07 20:21:15 +00:00
|
|
|
* opens all rcache components
|
|
|
|
*/
|
2005-12-10 21:59:06 +00:00
|
|
|
OMPI_DECLSPEC int mca_rcache_base_open(void);
|
2005-09-04 04:17:00 +00:00
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
/*
|
|
|
|
* close all rcache components and call finalize on any open modules
|
|
|
|
*/
|
2005-12-10 21:59:06 +00:00
|
|
|
OMPI_DECLSPEC int mca_rcache_base_close(void);
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
struct mca_rcache_base_selected_module_t {
|
|
|
|
opal_list_item_t super;
|
|
|
|
mca_rcache_base_component_t *rcache_component;
|
|
|
|
mca_rcache_base_module_t *rcache_module;
|
2005-09-04 04:17:00 +00:00
|
|
|
};
|
2005-09-07 20:21:15 +00:00
|
|
|
typedef struct mca_rcache_base_selected_module_t mca_rcache_base_selected_module_t;
|
2005-09-04 04:17:00 +00:00
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
OBJ_CLASS_DECLARATION(mca_rcache_base_selected_module_t);
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
OMPI_DECLSPEC mca_rcache_base_component_t* mca_rcache_base_component_lookup(const char* name);
|
|
|
|
OMPI_DECLSPEC mca_rcache_base_module_t* mca_rcache_base_module_lookup(const char* name);
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Globals
|
|
|
|
*/
|
2005-09-07 20:21:15 +00:00
|
|
|
OMPI_DECLSPEC extern int mca_rcache_base_output;
|
|
|
|
OMPI_DECLSPEC extern opal_list_t mca_rcache_base_components;
|
|
|
|
OMPI_DECLSPEC extern opal_list_t mca_rcache_base_modules;
|
2005-09-04 04:17:00 +00:00
|
|
|
|
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-07 20:21:15 +00:00
|
|
|
#endif /* MCA_RCACHE_BASE_H */
|