Motr  M0
cs_fop.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2012-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_MOTR_UT_CS_UT_FOP_FOMS_H__
26 #define __MOTR_MOTR_UT_CS_UT_FOP_FOMS_H__
27 
28 #include "lib/types.h"
29 #include "xcode/xcode_attr.h"
30 
31 extern struct m0_fop_type cs_ds1_req_fop_fopt;
32 extern struct m0_fop_type cs_ds1_rep_fop_fopt;
33 extern struct m0_fop_type cs_ds2_req_fop_fopt;
34 extern struct m0_fop_type cs_ds2_rep_fop_fopt;
35 
37 
38 /*
39  Supported service types.
40  */
41 enum {
44 };
45 
46 /*
47  Builds ds1 service fop types.
48  Invoked from service specific stop function.
49  */
50 int m0_cs_ut_ds1_fop_init(void);
51 
52 /*
53  Finalises ds1 service fop types.
54  Invoked from service specific startup function.
55  */
56 void m0_cs_ut_ds1_fop_fini(void);
57 
58 /*
59  Builds ds1 service fop types.
60  Invoked from service specific stop function.
61  */
62 int m0_cs_ut_ds2_fop_init(void);
63 
64 /*
65  Finalises ds1 service fop types.
66  Invoked from service specific startup function.
67  */
68 void m0_cs_ut_ds2_fop_fini(void);
69 
70 struct m0_fom;
71 
72 void m0_ut_fom_phase_set(struct m0_fom *fom, int phase);
73 
74 /*
75  Dummy fops to test motr setup
76  */
78  uint64_t csr_value;
79 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
80 
82  int32_t csr_rc;
83 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
84 
86  uint64_t csr_value;
87 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
88 
90  int32_t csr_rc;
91 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
92 
93 /* __MOTR_MOTR_UT_CS_UT_FOP_FOMS_H__ */
94 #endif
95 
96 /*
97  * Local variables:
98  * c-indentation-style: "K&R"
99  * c-basic-offset: 8
100  * tab-width: 8
101  * fill-column: 80
102  * scroll-step: 1
103  * End:
104  */
struct cs_ds1_req_fop M0_XCA_DOMAIN(rpc)
void m0_ut_fom_phase_set(struct m0_fom *fom, int phase)
Definition: cs_fop.c:186
int32_t csr_rc
Definition: cs_fop.h:82
int32_t csr_rc
Definition: cs_fop.h:90
const struct m0_rpc_item_ops cs_ds_req_fop_rpc_item_ops
Definition: cs_fop.c:47
struct m0_fop_type cs_ds1_rep_fop_fopt
Definition: cs_fop.c:52
int m0_cs_ut_ds1_fop_init(void)
Definition: cs_fop.c:129
void m0_cs_ut_ds2_fop_fini(void)
Definition: cs_fop.c:154
struct m0_fop_type cs_ds1_req_fop_fopt
Definition: cs_fop.c:51
int m0_cs_ut_ds2_fop_init(void)
Definition: cs_fop.c:161
Definition: dump.c:103
Definition: fom.h:481
struct m0_fop_type cs_ds2_req_fop_fopt
Definition: cs_fop.c:53
uint64_t csr_value
Definition: cs_fop.h:86
uint64_t csr_value
Definition: cs_fop.h:78
struct m0_fop_type cs_ds2_rep_fop_fopt
Definition: cs_fop.c:54
void m0_cs_ut_ds1_fop_fini(void)
Definition: cs_fop.c:122