Motr  M0
module.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2017-2021 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI
24 
25 #include "lib/trace.h"
26 #include "fdmi/module.h"
27 #include "module/instance.h"
28 
29 #if 0 /* unused code */
30 M0_UNUSED static int level_fdmi_enter(struct m0_module *module);
31 M0_UNUSED static void level_fdmi_leave(struct m0_module *module);
32 
33 M0_UNUSED static const struct m0_modlev levels_fdmi[] = {
34  [M0_LEVEL_FDMI] = {
35  .ml_name = "fdmi is initialised",
36  .ml_enter = level_fdmi_enter,
37  .ml_leave = level_fdmi_leave,
38  }
39 };
40 
41 M0_UNUSED static int level_fdmi_enter(struct m0_module *module)
42 {
43  return 0;
44 }
45 
46 static void level_fdmi_leave(struct m0_module *module)
47 {
48 }
49 #endif
50 
51 M0_INTERNAL struct m0_fdmi_module *m0_fdmi_module__get(void)
52 {
53  return &m0_get()->i_fdmi_module;
54 }
55 
56 #undef M0_TRACE_SUBSYSTEM
57 
58 /*
59  * Local variables:
60  * c-indentation-style: "K&R"
61  * c-basic-offset: 8
62  * tab-width: 8
63  * fill-column: 80
64  * scroll-step: 1
65  * End:
66  */
67 /*
68  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
69  */
const char * ml_name
Definition: module.h:114
M0_INTERNAL struct m0_fdmi_module * m0_fdmi_module__get(void)
Definition: module.c:51
M0_INTERNAL struct m0 * m0_get(void)
Definition: instance.c:41
struct m0_fdmi_module i_fdmi_module
Definition: instance.h:118
#define M0_UNUSED
Definition: misc.h:380