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
"
859
#include "
fdmi/plugin_dock_internal.h
"
860
#include "
fdmi/source_dock.h
"
861
#include "
fdmi/source_dock_internal.h
"
862
#include "
fdmi/filter.h
"
863
#include "fdmi/filter_xc.h"
864
865
static
struct
m0_fdmi_src_dock
fdmi_global_src_dock
;
866
867
M0_INTERNAL
int
m0_fdmi_init
(
void
)
868
{
869
int
rc
;
870
871
M0_ENTRY
();
872
m0_xc_fdmi_filter_init();
873
m0_fdmi_source_dock_init
(&
fdmi_global_src_dock
);
874
rc
=
m0_fdmi__plugin_dock_init
();
875
876
return
M0_RC
(
rc
);
877
}
878
879
M0_INTERNAL
void
m0_fdmi_fini
(
void
)
880
{
881
M0_ENTRY
();
882
883
m0_fdmi_source_dock_fini
(&
fdmi_global_src_dock
);
884
m0_fdmi__plugin_dock_fini
();
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
*/
plugin_dock.h
m0_fdmi_fini
M0_INTERNAL void m0_fdmi_fini(void)
Definition:
fdmi.c:879
source_dock.h
trace.h
source_dock_internal.h
M0_LEAVE
M0_LEAVE()
filter.h
m0_fdmi_init
M0_INTERNAL int m0_fdmi_init(void)
Definition:
fdmi.c:867
M0_RC
return M0_RC(rc)
tlist.h
M0_ENTRY
#define M0_ENTRY(...)
Definition:
trace.h:170
m0_fdmi__plugin_dock_init
M0_INTERNAL int m0_fdmi__plugin_dock_init(void)
Definition:
plugin_dock.c:568
plugin_dock_internal.h
m0_fdmi_src_dock_get
M0_INTERNAL struct m0_fdmi_src_dock * m0_fdmi_src_dock_get(void)
Definition:
fdmi.c:890
fdmi_global_src_dock
static struct m0_fdmi_src_dock fdmi_global_src_dock
Definition:
fdmi.c:865
fdmi.h
m0_fdmi_source_dock_fini
M0_INTERNAL void m0_fdmi_source_dock_fini(struct m0_fdmi_src_dock *src_dock)
Definition:
source_dock.c:97
m0_fdmi_src_dock
Definition:
source_dock_internal.h:100
m0_fdmi__plugin_dock_fini
M0_INTERNAL void m0_fdmi__plugin_dock_fini(void)
Definition:
plugin_dock.c:619
rc
int32_t rc
Definition:
trigger_fop.h:47
m0_fdmi_source_dock_init
M0_INTERNAL void m0_fdmi_source_dock_init(struct m0_fdmi_src_dock *src_dock)
Definition:
source_dock.c:85
fdmi
fdmi.c
Generated on Thu Apr 14 2022 14:02:54 for Motr by
1.8.14