root/opal/mca/pmix/isolated/pmix_isolated_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. isolated_open
  2. isolated_close
  3. isolated_component_query

   1 /*
   2  * Copyright (c) 2016      Intel, Inc.  All rights reserved.
   3  * Copyright (c) 2016 Cisco Systems, Inc.  All rights reserved.
   4  * $COPYRIGHT$
   5  *
   6  * Additional copyrights may follow
   7  *
   8  * $HEADER$
   9  *
  10  * These symbols are in a file by themselves to provide nice linker
  11  * semantics.  Since linkers generally pull in symbols by object
  12  * files, keeping these symbols as the only symbols in this file
  13  * prevents utility programs such as "ompi_info" from having to import
  14  * entire components just to query their version and parameters.
  15  */
  16 
  17 #include "opal_config.h"
  18 
  19 #include "opal/constants.h"
  20 #include "opal/class/opal_list.h"
  21 #include "opal/util/proc.h"
  22 #include "opal/mca/pmix/pmix.h"
  23 #include "pmix_isolated.h"
  24 
  25 /*
  26  * Public string showing the pmix isolated component version number
  27  */
  28 const char *opal_pmix_isolated_component_version_string =
  29     "OPAL isolated pmix MCA component version " OPAL_VERSION;
  30 
  31 /*
  32  * Local function
  33  */
  34 static int isolated_open(void);
  35 static int isolated_close(void);
  36 static int isolated_component_query(mca_base_module_t **module, int *priority);
  37 
  38 
  39 /*
  40  * Instantiate the public struct with all of our public information
  41  * and pointers to our public functions in it
  42  */
  43 
  44 opal_pmix_base_component_t mca_pmix_isolated_component = {
  45     .base_version = {
  46         /* Indicate that we are a pmix v1.1.0 component (which also
  47            implies a specific MCA version) */
  48 
  49         OPAL_PMIX_BASE_VERSION_2_0_0,
  50 
  51         /* Component name and version */
  52 
  53         .mca_component_name = "isolated",
  54         MCA_BASE_MAKE_VERSION(component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION,
  55                               OPAL_RELEASE_VERSION),
  56 
  57         /* Component open and close functions */
  58 
  59         .mca_open_component = isolated_open,
  60         .mca_close_component = isolated_close,
  61         .mca_query_component = isolated_component_query,
  62     },
  63     /* Next the MCA v1.0.0 component meta data */
  64     .base_data = {
  65         /* The component is checkpoint ready */
  66         MCA_BASE_METADATA_PARAM_CHECKPOINT
  67     }
  68 };
  69 
  70 static int isolated_open(void)
  71 {
  72     return OPAL_SUCCESS;
  73 }
  74 
  75 static int isolated_close(void)
  76 {
  77     return OPAL_SUCCESS;
  78 }
  79 
  80 
  81 static int isolated_component_query(mca_base_module_t **module, int *priority)
  82 {
  83     /* ignore us unless requested */
  84     *priority = 0;
  85     *module = (mca_base_module_t *)&opal_pmix_isolated_module;
  86     return OPAL_SUCCESS;
  87 }

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