This source file includes following definitions.
- mca_patcher_overwrite_register
- mca_patcher_overwrite_query
1
2
3
4
5
6
7
8
9
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 };