Motr  M0
dix_cp_onwire.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_DIX_CM_CP_ONWIRE_H__
26 #define __MOTR_DIX_CM_CP_ONWIRE_H__
27 
28 #include "rpc/rpc_opcodes.h"
29 #include "fid/fid.h"
30 #include "fid/fid_xc.h"
31 #include "rpc/at.h"
32 #include "rpc/at_xc.h"
33 #include "cm/cp_onwire.h"
34 #include "cm/cp_onwire_xc.h"
35 
36 struct m0_cm_type;
37 struct m0_fop_type;
38 struct m0_xcode_type;
39 
41 struct m0_dix_cpx {
43  struct m0_cpx dcx_cp;
44 
47 
48  uint32_t dcx_ctg_op_flags;
49 
50  uint64_t dcx_failed_idx;
51 
53  uint32_t dcx_phase;
54 
57 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
58 
59 
61 M0_INTERNAL void m0_dix_cpx_init(struct m0_fop_type *ft,
62  const struct m0_fom_type_ops *fomt_ops,
63  enum M0_RPC_OPCODES op,
64  const char *name,
65  const struct m0_xcode_type *xt,
66  uint64_t rpc_flags, struct m0_cm_type *cmt);
67 
69 M0_INTERNAL void m0_dix_cpx_fini(struct m0_fop_type *ft);
70 
71 #endif /* __MOTR_DIX_CM_CP_ONWIRE_H__ */
72 /*
73  * Local variables:
74  * c-indentation-style: "K&R"
75  * c-basic-offset: 8
76  * tab-width: 8
77  * fill-column: 80
78  * scroll-step: 1
79  * End:
80  */
M0_RPC_OPCODES
Definition: rpc_opcodes.h:41
struct m0_rpc_at_buf dcx_ab_key
Definition: dix_cp_onwire.h:55
uint32_t dcx_phase
Definition: dix_cp_onwire.h:53
static struct m0_xcode_type ** xt[]
Definition: protocol.c:64
struct m0_fom_type_ops fomt_ops
Definition: pd_ut.c:179
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
op
Definition: libdemo.c:64
struct m0_cpx dcx_cp
Definition: dix_cp_onwire.h:43
uint32_t dcx_ctg_op_flags
Definition: dix_cp_onwire.h:48
const char * name
Definition: trace.c:110
struct m0_dix_cpx M0_XCA_DOMAIN(rpc)
struct m0_rpc_at_buf dcx_ab_val
Definition: dix_cp_onwire.h:56
M0_INTERNAL void m0_dix_cpx_fini(struct m0_fop_type *ft)
Definition: dix_cp_onwire.c:50
uint64_t dcx_failed_idx
Definition: dix_cp_onwire.h:50
Definition: cm.h:143
Definition: fid.h:38
static struct m0_fop_type * ft[]
Definition: service_ut.c:856
struct m0_fid dcx_ctg_fid
Definition: dix_cp_onwire.h:46