Motr  M0
fdmi.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2017-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 
853 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_FDMI
854 #include "lib/trace.h"
855 
856 #include "lib/tlist.h"
857 #include "fdmi/fdmi.h"
858 #include "fdmi/plugin_dock.h"
860 #include "fdmi/source_dock.h"
862 #include "fdmi/filter.h"
863 #include "fdmi/filter_xc.h"
864 
866 
867 M0_INTERNAL int m0_fdmi_init(void)
868 {
869  int rc;
870 
871  M0_ENTRY();
872  m0_xc_fdmi_filter_init();
875 
876  return M0_RC(rc);
877 }
878 
879 M0_INTERNAL void m0_fdmi_fini(void)
880 {
881  M0_ENTRY();
882 
885  m0_xc_fdmi_filter_fini();
886 
887  M0_LEAVE();
888 }
889 
890 M0_INTERNAL struct m0_fdmi_src_dock *m0_fdmi_src_dock_get(void)
891 {
892  return &fdmi_global_src_dock;
893 }
894 
895 #undef M0_TRACE_SUBSYSTEM
896 
897 /*
898  * Local variables:
899  * c-indentation-style: "K&R"
900  * c-basic-offset: 8
901  * tab-width: 8
902  * fill-column: 80
903  * scroll-step: 1
904  * End:
905  */
906 /*
907  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
908  */
M0_INTERNAL void m0_fdmi_fini(void)
Definition: fdmi.c:879
M0_LEAVE()
M0_INTERNAL int m0_fdmi_init(void)
Definition: fdmi.c:867
return M0_RC(rc)
#define M0_ENTRY(...)
Definition: trace.h:170
M0_INTERNAL int m0_fdmi__plugin_dock_init(void)
Definition: plugin_dock.c:568
M0_INTERNAL struct m0_fdmi_src_dock * m0_fdmi_src_dock_get(void)
Definition: fdmi.c:890
static struct m0_fdmi_src_dock fdmi_global_src_dock
Definition: fdmi.c:865
M0_INTERNAL void m0_fdmi_source_dock_fini(struct m0_fdmi_src_dock *src_dock)
Definition: source_dock.c:97
M0_INTERNAL void m0_fdmi__plugin_dock_fini(void)
Definition: plugin_dock.c:619
int32_t rc
Definition: trigger_fop.h:47
M0_INTERNAL void m0_fdmi_source_dock_init(struct m0_fdmi_src_dock *src_dock)
Definition: source_dock.c:85