Motr
M0
sns_cp_onwire.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_SNS_CM_CP_ONWIRE_H__
26
#define __MOTR_SNS_CM_CP_ONWIRE_H__
27
28
#include "
rpc/rpc_opcodes.h
"
29
#include "
stob/stob.h
"
30
#include "stob/stob_xc.h"
31
#include "
cm/cp_onwire.h
"
32
#include "cm/cp_onwire_xc.h"
33
34
struct
m0_cm_type
;
35
37
struct
m0_sns_cpx
{
39
struct
m0_cpx
scx_cp
;
44
struct
m0_io_indexvec_seq
scx_ivecs
;
45
47
struct
m0_stob_id
scx_stob_id
;
48
49
uint64_t
scx_failed_idx
;
50
52
uint32_t
scx_phase
;
53
} M0_XCA_RECORD
M0_XCA_DOMAIN
(rpc);
54
56
struct
m0_sns_cpx_reply
{
57
int32_t
scr_rc
;
59
struct
m0_cpx_reply
scr_cp_rep
;
60
} M0_XCA_RECORD
M0_XCA_DOMAIN
(rpc);
61
62
M0_INTERNAL
void
m0_sns_cpx_init
(
struct
m0_fop_type
*
ft
,
63
const
struct
m0_fom_type_ops
*
fomt_ops
,
64
enum
M0_RPC_OPCODES
op
,
65
const
char
*
name
,
66
const
struct
m0_xcode_type
*
xt
,
67
uint64_t rpc_flags,
struct
m0_cm_type
*cmt);
68
69
M0_INTERNAL
void
m0_sns_cpx_fini
(
struct
m0_fop_type
*
ft
);
70
71
#endif
/* __MOTR_SNS_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
M0_RPC_OPCODES
Definition:
rpc_opcodes.h:41
m0_sns_cpx::scx_stob_id
struct m0_stob_id scx_stob_id
Definition:
sns_cp_onwire.h:47
m0_io_indexvec_seq
Definition:
vec.h:645
m0_xcode_type
Definition:
xcode.h:313
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_sns_cpx_reply::scr_rc
int32_t scr_rc
Definition:
sns_cp_onwire.h:57
op
op
Definition:
libdemo.c:64
m0_sns_cpx_init
M0_INTERNAL void m0_sns_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:
sns_cp_onwire.c:29
name
const char * name
Definition:
trace.c:110
m0_cpx_reply
Definition:
cp_onwire.h:63
m0_stob_id
Definition:
stob.h:101
m0_fom_type_ops
Definition:
fom.h:648
cp_onwire.h
m0_sns_cpx::scx_cp
struct m0_cpx scx_cp
Definition:
sns_cp_onwire.h:39
M0_XCA_DOMAIN
struct m0_sns_cpx M0_XCA_DOMAIN(rpc)
m0_cm_type
Definition:
cm.h:143
m0_sns_cpx::scx_failed_idx
uint64_t scx_failed_idx
Definition:
sns_cp_onwire.h:49
m0_sns_cpx
Definition:
sns_cp_onwire.h:37
m0_sns_cpx_fini
M0_INTERNAL void m0_sns_cpx_fini(struct m0_fop_type *ft)
Definition:
sns_cp_onwire.c:46
rpc_opcodes.h
stob.h
m0_sns_cpx::scx_ivecs
struct m0_io_indexvec_seq scx_ivecs
Definition:
sns_cp_onwire.h:44
ft
static struct m0_fop_type * ft[]
Definition:
service_ut.c:856
m0_sns_cpx_reply
Definition:
sns_cp_onwire.h:56
m0_sns_cpx::scx_phase
uint32_t scx_phase
Definition:
sns_cp_onwire.h:52
m0_sns_cpx_reply::scr_cp_rep
struct m0_cpx_reply scr_cp_rep
Definition:
sns_cp_onwire.h:59
m0_fop_type
Definition:
fop.h:223
sns
cm
sns_cp_onwire.h
Generated on Thu Apr 14 2022 14:03:00 for Motr by
1.8.14