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
46
struct
m0_fid
dcx_ctg_fid
;
47
48
uint32_t
dcx_ctg_op_flags
;
49
50
uint64_t
dcx_failed_idx
;
51
53
uint32_t
dcx_phase
;
54
55
struct
m0_rpc_at_buf
dcx_ab_key
;
56
struct
m0_rpc_at_buf
dcx_ab_val
;
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
*/
fid.h
M0_RPC_OPCODES
M0_RPC_OPCODES
Definition:
rpc_opcodes.h:41
m0_dix_cpx::dcx_ab_key
struct m0_rpc_at_buf dcx_ab_key
Definition:
dix_cp_onwire.h:55
m0_xcode_type
Definition:
xcode.h:313
at.h
m0_dix_cpx::dcx_phase
uint32_t dcx_phase
Definition:
dix_cp_onwire.h:53
m0_cpx
Definition:
cp_onwire.h:36
xt
static struct m0_xcode_type ** xt[]
Definition:
protocol.c:64
fomt_ops
struct m0_fom_type_ops fomt_ops
Definition:
pd_ut.c:179
m0_dix_cpx_init
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
op
Definition:
libdemo.c:64
m0_dix_cpx::dcx_cp
struct m0_cpx dcx_cp
Definition:
dix_cp_onwire.h:43
m0_dix_cpx::dcx_ctg_op_flags
uint32_t dcx_ctg_op_flags
Definition:
dix_cp_onwire.h:48
name
const char * name
Definition:
trace.c:110
M0_XCA_DOMAIN
struct m0_dix_cpx M0_XCA_DOMAIN(rpc)
m0_dix_cpx::dcx_ab_val
struct m0_rpc_at_buf dcx_ab_val
Definition:
dix_cp_onwire.h:56
m0_fom_type_ops
Definition:
fom.h:648
cp_onwire.h
m0_dix_cpx_fini
M0_INTERNAL void m0_dix_cpx_fini(struct m0_fop_type *ft)
Definition:
dix_cp_onwire.c:50
m0_rpc_at_buf
Definition:
at.h:249
m0_dix_cpx::dcx_failed_idx
uint64_t dcx_failed_idx
Definition:
dix_cp_onwire.h:50
m0_cm_type
Definition:
cm.h:143
m0_fid
Definition:
fid.h:38
rpc_opcodes.h
ft
static struct m0_fop_type * ft[]
Definition:
service_ut.c:856
m0_dix_cpx
Definition:
dix_cp_onwire.h:41
m0_dix_cpx::dcx_ctg_fid
struct m0_fid dcx_ctg_fid
Definition:
dix_cp_onwire.h:46
m0_fop_type
Definition:
fop.h:223
dix
cm
dix_cp_onwire.h
Generated on Thu Apr 14 2022 14:02:54 for Motr by
1.8.14