Motr  M0
lnet.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2012-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_NET_LNET_H__
26 #define __MOTR_NET_LNET_H__
27 
61 #include "net/net.h"
62 
114 extern const struct m0_net_xprt m0_net_lnet_xprt;
115 
116 enum {
129 };
130 
137 M0_INTERNAL int m0_net_lnet_ep_addr_net_cmp(const char *addr1,
138  const char *addr2);
139 
146 M0_INTERNAL int m0_net_lnet_ifaces_get(struct m0_net_domain *dom,
147  char ***addrs);
148 
152 M0_INTERNAL void m0_net_lnet_ifaces_put(struct m0_net_domain *dom,
153  char ***addrs);
154 
155 /* init and fini functions for motr init */
156 M0_INTERNAL int m0_net_lnet_init(void);
157 M0_INTERNAL void m0_net_lnet_fini(void);
158 
159 /*
160  Debug support.
161  */
162 M0_INTERNAL void m0_net_lnet_dom_set_debug(struct m0_net_domain *dom,
163  unsigned dbg);
164 M0_INTERNAL void m0_net_lnet_tm_set_debug(struct m0_net_transfer_mc *tm,
165  unsigned dbg);
166 
171 #endif /* __MOTR_NET_LNET_H__ */
172 
173 /*
174  * Local variables:
175  * c-indentation-style: "K&R"
176  * c-basic-offset: 8
177  * tab-width: 8
178  * fill-column: 79
179  * scroll-step: 1
180  * End:
181  */
M0_INTERNAL void m0_net_lnet_dom_set_debug(struct m0_net_domain *dom, unsigned dbg)
Definition: lnet_main.c:977
const struct m0_net_xprt m0_net_lnet_xprt
Definition: lnet_xo.c:679
M0_INTERNAL int m0_net_lnet_ep_addr_net_cmp(const char *addr1, const char *addr2)
Definition: lnet_main.c:941
M0_INTERNAL void m0_net_lnet_tm_set_debug(struct m0_net_transfer_mc *tm, unsigned dbg)
Definition: lnet_main.c:992
M0_INTERNAL int m0_net_lnet_ifaces_get(struct m0_net_domain *dom, char ***addrs)
Definition: lnet_main.c:955
static struct m0_stob_domain * dom
Definition: storage.c:38
M0_INTERNAL void m0_net_lnet_ifaces_put(struct m0_net_domain *dom, char ***addrs)
Definition: lnet_main.c:966
M0_INTERNAL int m0_net_lnet_init(void)
Definition: lnet_main.c:923
M0_INTERNAL void m0_net_lnet_fini(void)
Definition: lnet_main.c:933