Motr  M0
sw_onwire_fop.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-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_CM_REPREB_SW_ONWIRE_FOP_H__
26 #define __MOTR_CM_REPREB_SW_ONWIRE_FOP_H__
27 
28 #include "xcode/xcode_attr.h"
29 #include "rpc/rpc_opcodes.h"
30 
31 #include "cm/cm.h"
32 #include "cm/sw.h"
33 #include "cm/sw_xc.h"
34 
44 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
45 
47 M0_INTERNAL
49  const struct m0_fom_type_ops *fomt_ops,
50  enum M0_RPC_OPCODES op,
51  const char *name,
52  const struct m0_xcode_type *xt,
53  uint64_t rpc_flags,
54  struct m0_cm_type *cmt);
55 
57 M0_INTERNAL void m0_cm_repreb_sw_onwire_fop_fini(struct m0_fop_type *ft);
58 
64 M0_INTERNAL int
66  struct m0_fop *fop,
67  void (*fop_release)(struct m0_ref *),
68  uint64_t proxy_id, const char *local_ep,
69  const struct m0_cm_sw *sw,
70  const struct m0_cm_sw *out_interval);
71 
72 extern struct m0_fop_type m0_cm_repreb_sw_fopt;
73 
76 #endif /* __MOTR_CM_REPREB_SW_ONWIRE_FOP_H__ */
77 /*
78  * Local variables:
79  * c-indentation-style: "K&R"
80  * c-basic-offset: 8
81  * tab-width: 8
82  * fill-column: 80
83  * scroll-step: 1
84  * End:
85  */
M0_INTERNAL void m0_cm_repreb_sw_onwire_fop_init(struct m0_fop_type *ft, const struct m0_fom_type_ops *fomt_ops, enum M0_RPC_OPCODES op, const char *name, const struct m0_xcode_type *xt, uint64_t rpc_flags, struct m0_cm_type *cmt)
Definition: sw_onwire_fop.c:46
Definition: sw.h:45
M0_RPC_OPCODES
Definition: rpc_opcodes.h:41
struct m0_cm_sw_onwire swo_base
Definition: sw_onwire_fop.h:43
void fop_release(struct m0_ref *ref)
Definition: stats_ut_svc.c:148
static struct m0_xcode_type ** xt[]
Definition: protocol.c:64
struct m0_fom_type_ops fomt_ops
Definition: pd_ut.c:179
static struct m0_cm * cm
Definition: cm.c:63
op
Definition: libdemo.c:64
const char * name
Definition: trace.c:110
Definition: refs.h:34
M0_INTERNAL void m0_cm_repreb_sw_onwire_fop_fini(struct m0_fop_type *ft)
Definition: sw_onwire_fop.c:64
M0_INTERNAL int m0_cm_repreb_sw_onwire_fop_setup(struct m0_cm *cm, struct m0_fop_type *ft, struct m0_fop *fop, void(*fop_release)(struct m0_ref *), uint64_t proxy_id, const char *local_ep, const struct m0_cm_sw *sw, const struct m0_cm_sw *out_interval)
Definition: sw_onwire_fop.c:70
Definition: cm.h:143
struct m0_fop_type m0_cm_repreb_sw_fopt
struct m0_cm_repreb_sw M0_XCA_DOMAIN(rpc)
static const char * local_ep(const struct m0_cm *cm)
Definition: cm_utils.c:397
Definition: cm.h:166
static struct m0_fop * fop
Definition: item.c:57
static struct m0_fop_type * ft[]
Definition: service_ut.c:856
Definition: fop.h:79