root/orte/mca/filem/base/filem_base_frame.c

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

DEFINITIONS

This source file includes following definitions.
  1. orte_filem_base_close
  2. orte_filem_base_open

   1 /*
   2  * Copyright (c) 2004-2009 The Trustees of Indiana University.
   3  *                         All rights reserved.
   4  * Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
   5  *                         All rights reserved.
   6  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   7  *                         University of Stuttgart.  All rights reserved.
   8  * Copyright (c) 2004-2005 The Regents of the University of California.
   9  *                         All rights reserved.
  10  * Copyright (c) 2012-2013 Los Alamos National Security, LLC.
  11  *                         All rights reserved
  12  * Copyright (c) 2017      Intel, Inc. All rights reserved.
  13  * $COPYRIGHT$
  14  *
  15  * Additional copyrights may follow
  16  *
  17  * $HEADER$
  18  */
  19 
  20 #include "orte_config.h"
  21 
  22 #include "orte/constants.h"
  23 #include "orte/mca/mca.h"
  24 #include "opal/util/output.h"
  25 #include "opal/mca/base/base.h"
  26 
  27 #include "orte/mca/filem/filem.h"
  28 #include "orte/mca/filem/base/base.h"
  29 
  30 #include "orte/mca/filem/base/static-components.h"
  31 
  32 /*
  33  * Globals
  34  */
  35 ORTE_DECLSPEC orte_filem_base_module_t orte_filem = {
  36     .filem_init = orte_filem_base_module_init,
  37     .filem_finalize = orte_filem_base_module_finalize,
  38     .put = orte_filem_base_none_put,
  39     .put_nb = orte_filem_base_none_put_nb,
  40     .get = orte_filem_base_none_get,
  41     .get_nb = orte_filem_base_none_get_nb,
  42     .rm = orte_filem_base_none_rm,
  43     .rm_nb = orte_filem_base_none_rm_nb,
  44     .wait = orte_filem_base_none_wait,
  45     .wait_all = orte_filem_base_none_wait_all,
  46     .preposition_files = orte_filem_base_none_preposition_files,
  47     .link_local_files = orte_filem_base_none_link_local_files
  48 };
  49 bool orte_filem_base_is_active = false;
  50 
  51 static int orte_filem_base_close(void)
  52 {
  53     /* Close the selected component */
  54     if( NULL != orte_filem.filem_finalize ) {
  55         orte_filem.filem_finalize();
  56     }
  57 
  58     return mca_base_framework_components_close(&orte_filem_base_framework, NULL);
  59 }
  60 
  61 /**
  62  * Function for finding and opening either all MCA components,
  63  * or the one that was specifically requested via a MCA parameter.
  64  */
  65 static int orte_filem_base_open(mca_base_open_flag_t flags)
  66 {
  67      /* Open up all available components */
  68     return mca_base_framework_components_open(&orte_filem_base_framework, flags);
  69 }
  70 
  71 MCA_BASE_FRAMEWORK_DECLARE(orte, filem, NULL, NULL, orte_filem_base_open, orte_filem_base_close,
  72                            mca_filem_base_static_components, 0);

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