root/opal/mca/mpool/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) 2008-2009 Cisco Systems, Inc.  All rights reserved.
  14  * Copyright (c) 2015-2016 Los Alamos National Security, LLC. All rights
  15  *                         reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 /**
  23  * @file
  24  */
  25 #ifndef MCA_MEM_BASE_H
  26 #define MCA_MEM_BASE_H
  27 
  28 #include "opal_config.h"
  29 
  30 #include "opal/class/opal_list.h"
  31 #include "opal/mca/base/base.h"
  32 #include "opal/mca/mpool/mpool.h"
  33 
  34 BEGIN_C_DECLS
  35 
  36 struct mca_mpool_base_selected_module_t {
  37     opal_list_item_t super;
  38     mca_mpool_base_component_t *mpool_component;
  39     mca_mpool_base_module_t *mpool_module;
  40 };
  41 typedef struct mca_mpool_base_selected_module_t mca_mpool_base_selected_module_t;
  42 
  43 OPAL_DECLSPEC OBJ_CLASS_DECLARATION(mca_mpool_base_selected_module_t);
  44 
  45 /*
  46  * Data structures for the tree of allocated memory
  47  */
  48 
  49 /*
  50  * Global functions for MCA: overall mpool open and close
  51  */
  52 
  53 OPAL_DECLSPEC mca_mpool_base_component_t* mca_mpool_base_component_lookup(const char* name);
  54 OPAL_DECLSPEC mca_mpool_base_module_t* mca_mpool_base_module_lookup(const char* name);
  55 
  56 OPAL_DECLSPEC mca_mpool_base_module_t *mca_mpool_basic_create (void *base, size_t size, unsigned min_align);
  57 
  58 /*
  59  * Globals
  60  */
  61 extern opal_list_t mca_mpool_base_modules;
  62 extern mca_mpool_base_module_t *mca_mpool_base_default_module;
  63 extern int mca_mpool_base_default_priority;
  64 
  65 
  66 OPAL_DECLSPEC extern mca_base_framework_t opal_mpool_base_framework;
  67 
  68 END_C_DECLS
  69 
  70 #endif /* MCA_MEM_BASE_H */

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