Motr  M0
dix_cp_onwire.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 
23 #include "fop/fop.h"
24 
25 #include "dix/cm/cm.h"
26 #include "dix/cm/cp.h"
27 #include "rpc/rpc_opcodes.h"
28 
29 #include "dix/cm/dix_cp_onwire.h"
30 
31 
32 M0_INTERNAL void m0_dix_cpx_init(struct m0_fop_type *ft,
33  const struct m0_fom_type_ops *fomt_ops,
34  enum M0_RPC_OPCODES op,
35  const char *name,
36  const struct m0_xcode_type *xt,
37  uint64_t rpc_flags, struct m0_cm_type *cmt)
38 {
40  .name = name,
41  .opcode = op,
42  .xt = xt,
43  .rpc_flags = rpc_flags,
44  .fom_ops = fomt_ops,
45  .sm = &m0_generic_conf,
46  .svc_type = &cmt->ct_stype);
48 }
49 
50 M0_INTERNAL void m0_dix_cpx_fini(struct m0_fop_type *ft)
51 {
54 }
55 
56 /*
57  * Local variables:
58  * c-indentation-style: "K&R"
59  * c-basic-offset: 8
60  * tab-width: 8
61  * fill-column: 80
62  * scroll-step: 1
63  * End:
64  */
M0_INTERNAL void m0_dix_cpx_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: dix_cp_onwire.c:32
M0_RPC_OPCODES
Definition: rpc_opcodes.h:41
#define M0_FOP_TYPE_INIT(ft,...)
Definition: fop.h:307
void m0_fop_type_addb2_deinstrument(struct m0_fop_type *type)
Definition: fop.c:493
void m0_fop_type_fini(struct m0_fop_type *fopt)
Definition: fop.c:232
static struct m0_xcode_type ** xt[]
Definition: protocol.c:64
const struct m0_sm_conf m0_generic_conf
Definition: fom_generic.c:838
struct m0_fom_type_ops fomt_ops
Definition: pd_ut.c:179
op
Definition: libdemo.c:64
int opcode
Definition: crate.c:301
const char * name
Definition: trace.c:110
Definition: cm.h:143
int m0_fop_type_addb2_instrument(struct m0_fop_type *type)
Definition: fop.c:461
struct m0_reqh_service_type ct_stype
Definition: cm.h:145
static struct m0_fop_type * ft[]
Definition: service_ut.c:856
M0_INTERNAL void m0_dix_cpx_fini(struct m0_fop_type *ft)
Definition: dix_cp_onwire.c:50