Motr  M0
be.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_UT_BE_H__
26 #define __MOTR_UT_BE_H__
27 
28 #include "lib/types.h" /* m0_bcount_t */
29 
30 /* import */
31 struct m0_be_tx_credit;
32 struct m0_be_tx;
33 struct m0_be_seg;
34 struct m0_be_ut_backend;
35 struct m0_be_ut_seg;
36 struct m0_reqh;
37 struct m0_sm_group;
38 
52 M0_INTERNAL void m0_ut_backend_init(struct m0_be_ut_backend *be,
53  struct m0_be_ut_seg *seg);
54 
55 M0_INTERNAL void m0_ut_backend_fini(struct m0_be_ut_backend *be,
56  struct m0_be_ut_seg *seg);
57 
59 M0_INTERNAL void m0_ut_be_tx_begin(struct m0_be_tx *tx,
60  struct m0_be_ut_backend *ut_be,
61  struct m0_be_tx_credit *cred);
62 
63 M0_INTERNAL void m0_ut_be_tx_begin2(struct m0_be_tx *tx,
64  struct m0_be_ut_backend *ut_be,
65  struct m0_be_tx_credit *cred,
66  m0_bcount_t payload_cred);
67 
69 M0_INTERNAL void m0_ut_be_tx_end(struct m0_be_tx *tx);
70 
72 #endif /* __MOTR_UT_BE_H__ */
73 
74 /*
75  * Local variables:
76  * c-indentation-style: "K&R"
77  * c-basic-offset: 8
78  * tab-width: 8
79  * fill-column: 80
80  * scroll-step: 1
81  * End:
82  */
83 /*
84  * vim: tabstop=8 shiftwidth=8 noexpandtab textwidth=80 nowrap
85  */
M0_INTERNAL void m0_ut_backend_fini(struct m0_be_ut_backend *be, struct m0_be_ut_seg *seg)
Definition: be.c:50
M0_INTERNAL void m0_ut_be_tx_end(struct m0_be_tx *tx)
Definition: be.c:82
uint64_t m0_bcount_t
Definition: types.h:77
M0_INTERNAL void m0_ut_be_tx_begin2(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be, struct m0_be_tx_credit *cred, m0_bcount_t payload_cred)
Definition: be.c:68
struct m0_be_ut_backend ut_be
Definition: ad.c:72
M0_INTERNAL void m0_ut_be_tx_begin(struct m0_be_tx *tx, struct m0_be_ut_backend *ut_be, struct m0_be_tx_credit *cred)
Definition: be.c:56
Definition: reqh.h:94
Definition: seg.h:66
static struct m0_be_seg * seg
Definition: btree.c:40
static struct m0_be_ut_backend be
Definition: service_ut.c:59
M0_INTERNAL void m0_ut_backend_init(struct m0_be_ut_backend *be, struct m0_be_ut_seg *seg)
Definition: be.c:43
Definition: tx.h:280