root/opal/mca/rcache/base/base.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2006 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
  14  *                         reserved.
  15  * $COPYRIGHT$
  16  *
  17  * Additional copyrights may follow
  18  *
  19  * $HEADER$
  20  */
  21 /**
  22  * @file
  23  */
  24 #ifndef MCA_RCACHE_BASE_H
  25 #define MCA_RCACHE_BASE_H
  26 
  27 #include "opal_config.h"
  28 
  29 #include "opal/class/opal_list.h"
  30 #include "opal/mca/mca.h"
  31 #include "opal/mca/rcache/rcache.h"
  32 #include "opal/mca/memory/base/base.h"
  33 
  34 BEGIN_C_DECLS
  35 
  36 /*
  37  * create a module by name
  38  */
  39 OPAL_DECLSPEC mca_rcache_base_module_t *mca_rcache_base_module_create (const char *name, void *user_data,
  40                                                                        mca_rcache_base_resources_t *rcache_resources);
  41 
  42 /*
  43  * MCA framework
  44  */
  45 OPAL_DECLSPEC extern mca_base_framework_t opal_rcache_base_framework;
  46 
  47 struct mca_rcache_base_selected_module_t {
  48     opal_list_item_t super;
  49     mca_rcache_base_component_t *rcache_component;
  50     mca_rcache_base_module_t *rcache_module;
  51     void *user_data;
  52 };
  53 typedef struct mca_rcache_base_selected_module_t mca_rcache_base_selected_module_t;
  54 
  55 OPAL_DECLSPEC OBJ_CLASS_DECLARATION(mca_rcache_base_selected_module_t);
  56 
  57 OPAL_DECLSPEC mca_rcache_base_component_t *mca_rcache_base_component_lookup(const char *name);
  58 OPAL_DECLSPEC mca_rcache_base_module_t *mca_rcache_base_module_lookup (const char *name);
  59 OPAL_DECLSPEC int mca_rcache_base_module_destroy(mca_rcache_base_module_t *module);
  60 
  61 extern opal_free_list_t mca_rcache_base_vma_tree_items;
  62 extern bool mca_rcache_base_vma_tree_items_inited;
  63 extern unsigned int mca_rcache_base_vma_tree_items_min;
  64 extern int mca_rcache_base_vma_tree_items_max;
  65 extern unsigned int mca_rcache_base_vma_tree_items_inc;
  66 
  67 /* only used within base -- no need to DECLSPEC */
  68 extern int mca_rcache_base_used_mem_hooks;
  69 
  70 /*
  71  * Globals
  72  */
  73 OPAL_DECLSPEC extern opal_list_t mca_rcache_base_modules;
  74 
  75 END_C_DECLS
  76 
  77 #endif /* MCA_RCACHE_BASE_H */

/* [<][>][^][v][top][bottom][index][help] */