Motr  M0
common.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2015-2020 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 
30 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_BE
31 #include "lib/trace.h"
32 
33 #include "module/instance.h" /* m0 */
34 
36  struct m0 bcc_instance;
37 };
38 
40 
41 /* copy-paste from utils/m0ut.c */
43 {
44  int rc;
45 
49  M0_ASSERT(rc == 0);
50 }
51 
53 {
55 }
56 
57 #undef M0_TRACE_SUBSYSTEM
58 
61 /*
62  * Local variables:
63  * c-indentation-style: "K&R"
64  * c-basic-offset: 8
65  * tab-width: 8
66  * fill-column: 80
67  * scroll-step: 1
68  * End:
69  */
70 /*
71  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
72  */
M0_INTERNAL void m0_instance_setup(struct m0 *instance)
Definition: instance.c:110
M0_INTERNAL struct m0 * m0_get(void)
Definition: instance.c:41
#define M0_ASSERT(cond)
void m0_betool_m0_fini(void)
Definition: common.c:52
Definition: instance.h:80
struct m0 bcc_instance
Definition: common.c:36
void m0_betool_m0_init(void)
Definition: common.c:42
static struct m0_betool_common_ctx betool_common_ctx
Definition: common.c:39
struct m0_module i_self
Definition: instance.h:88
int32_t rc
Definition: trigger_fop.h:47
M0_INTERNAL void m0_module_fini(struct m0_module *module, int level)
Definition: module.c:142
M0_INTERNAL int m0_module_init(struct m0_module *module, int level)
Definition: module.c:131