root/opal/mca/patcher/overwrite/patcher_overwrite_component.c

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

DEFINITIONS

This source file includes following definitions.
  1. mca_patcher_overwrite_register
  2. mca_patcher_overwrite_query

   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
   2 /*
   3  * Copyright (c) 2016      Los Alamos National Security, LLC. All rights
   4  *                         reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  10  */
  11 
  12 #include "patcher_overwrite.h"
  13 #include "opal/mca/mca.h"
  14 #include "opal/mca/base/base.h"
  15 
  16 static int mca_patcher_overwrite_priority;
  17 
  18 static int mca_patcher_overwrite_register (void)
  19 {
  20     mca_patcher_overwrite_priority = 37;
  21     mca_base_component_var_register (&mca_patcher_overwrite_component.patcherc_version,
  22                                      "priority", "Priority of the overwrite binary patcher component",
  23                                      MCA_BASE_VAR_TYPE_INT, NULL, 0, 0, OPAL_INFO_LVL_5,
  24                                      MCA_BASE_VAR_SCOPE_CONSTANT, &mca_patcher_overwrite_priority);
  25 
  26     return OPAL_SUCCESS;
  27 }
  28 
  29 static int mca_patcher_overwrite_query (mca_base_module_t **module, int *priority)
  30 {
  31     *module = &mca_patcher_overwrite_module.super;
  32     *priority = mca_patcher_overwrite_priority;
  33     return OPAL_SUCCESS;
  34 }
  35 
  36 mca_patcher_base_component_t mca_patcher_overwrite_component = {
  37     .patcherc_version = {
  38         OPAL_PATCHER_BASE_VERSION_1_0_0,
  39         .mca_component_name = "overwrite",
  40         MCA_BASE_MAKE_VERSION(component, OPAL_MAJOR_VERSION, OPAL_MINOR_VERSION,
  41                               OPAL_RELEASE_VERSION),
  42         .mca_query_component = mca_patcher_overwrite_query,
  43         .mca_register_component_params = mca_patcher_overwrite_register,
  44     },
  45 };

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