Motr  M0
plugin_dock_internal.h
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 
23 #pragma once
24 
25 #ifndef __MOTR_FDMI_FDMI_PLUGIN_DOCK_INTERNAL_H__
26 #define __MOTR_FDMI_FDMI_PLUGIN_DOCK_INTERNAL_H__
27 
28 #include "fop/fom.h"
29 #include "fdmi/plugin_dock.h"
30 
44 M0_INTERNAL int m0_fdmi__plugin_dock_init(void);
45 
49 M0_INTERNAL int m0_fdmi__plugin_dock_start(struct m0_reqh *reqh);
50 
54 M0_INTERNAL void m0_fdmi__plugin_dock_stop(void);
55 
61 M0_INTERNAL void m0_fdmi__plugin_dock_fini(void);
62 
68 M0_INTERNAL int m0_fdmi__plugin_dock_fom_init(void);
69 
74 M0_INTERNAL struct
76 
80 struct pdock_fom {
82  struct m0_fom pf_fom;
86  uint32_t pf_pos;
88  void (*pf_custom_fom_fini)(struct m0_fom *fom);
89 };
90 
95 struct m0_fdmi_filter_reg *
97 
102 struct m0_fdmi_record_reg *
103 m0_fdmi__pdock_record_reg_find(const struct m0_uint128 *rid);
104 
106 
108 
111 #endif
112 
113 /*
114  * Local variables:
115  * c-indentation-style: "K&R"
116  * c-basic-offset: 8
117  * tab-width: 8
118  * fill-column: 80
119  * scroll-step: 1
120  * End:
121  */
122 /*
123  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
124  */
struct m0_rpc_machine * m0_fdmi__pdock_conn_pool_rpc_machine(void)
Definition: plugin_dock.c:97
M0_INTERNAL void m0_fdmi__plugin_dock_stop(void)
Definition: plugin_dock.c:611
struct m0_fdmi_record_reg * m0_fdmi__pdock_record_reg_find(const struct m0_uint128 *rid)
Definition: plugin_dock.c:135
void(* pf_custom_fom_fini)(struct m0_fom *fom)
M0_INTERNAL struct m0_fdmi_record_reg * m0_fdmi__pdock_fdmi_record_register(struct m0_fop *fop)
Definition: plugin_dock.c:353
struct m0_fop_fdmi_record * pf_rec
struct m0_fid fid
Definition: di.c:46
struct m0_fom pf_fom
M0_INTERNAL int m0_fdmi__plugin_dock_init(void)
Definition: plugin_dock.c:568
Definition: reqh.h:94
Definition: dump.c:103
M0_INTERNAL int m0_fdmi__plugin_dock_fom_init(void)
Definition: fom.h:481
struct m0_reqh reqh
Definition: rm_foms.c:48
Definition: fid.h:38
static struct m0_fop * fop
Definition: item.c:57
struct m0_fdmi_filter_reg * m0_fdmi__pdock_filter_reg_find(const struct m0_fid *fid)
Definition: plugin_dock.c:118
const struct m0_fom_type_ops * m0_fdmi__pdock_fom_type_ops_get(void)
M0_INTERNAL int m0_fdmi__plugin_dock_start(struct m0_reqh *reqh)
Definition: plugin_dock.c:592
M0_INTERNAL void m0_fdmi__plugin_dock_fini(void)
Definition: plugin_dock.c:619
Definition: fop.h:79