Motr  M0
io_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_STOB_IO_FOP_H__
26 #define __MOTR_STOB_IO_FOP_H__
27 
28 #include "lib/types.h"
29 #include "xcode/xcode_attr.h"
30 
32  uint64_t f_seq;
33  uint64_t f_oid;
34 } M0_XCA_RECORD;
35 
36 struct m0_fi_value {
37  uint32_t fi_count;
38  uint8_t *fi_buf;
39 } M0_XCA_SEQUENCE;
40 
44 } M0_XCA_RECORD;
45 
47  int32_t fiwr_rc;
48  uint32_t fiwr_count;
49 } M0_XCA_RECORD;
50 
53 } M0_XCA_RECORD;
54 
56  int32_t firr_rc;
57  uint32_t firr_count;
59 } M0_XCA_RECORD;
60 
63 } M0_XCA_RECORD;
64 
66  int32_t ficr_rc;
67 } M0_XCA_RECORD;
68 
70 extern struct m0_fop_type m0_stob_io_read_fopt;
72 
76 
77 void m0_stob_io_fop_init(void);
78 void m0_stob_io_fop_fini(void);
79 
80 #endif /* !__MOTR_STOB_IO_FOP_H__ */
81 
82 /*
83  * Local variables:
84  * c-indentation-style: "K&R"
85  * c-basic-offset: 8
86  * tab-width: 8
87  * fill-column: 80
88  * scroll-step: 1
89  * End:
90  */
struct m0_fop_type m0_stob_io_read_fopt
Definition: io_fop.c:64
int32_t firr_rc
Definition: io_fop.h:56
uint32_t firr_count
Definition: io_fop.h:57
struct stob_io_fop_fid fic_object
Definition: io_fop.h:62
struct m0_fop_type m0_stob_io_create_rep_fopt
Definition: io_fop.c:66
struct m0_fi_value fiw_value
Definition: io_fop.h:43
struct m0_fop_type m0_stob_io_write_fopt
Definition: io_fop.c:65
uint64_t f_oid
Definition: io_fop.h:33
void m0_stob_io_fop_fini(void)
Definition: io_fop.c:680
uint32_t fiwr_count
Definition: io_fop.h:48
uint64_t f_seq
Definition: io_fop.h:32
struct stob_io_fop_fid fir_object
Definition: io_fop.h:52
struct m0_fop_type m0_stob_io_write_rep_fopt
Definition: io_fop.c:68
struct m0_fop_type m0_stob_io_read_rep_fopt
Definition: io_fop.c:67
uint32_t fi_count
Definition: io_fop.h:37
int32_t fiwr_rc
Definition: io_fop.h:47
struct stob_io_fop_fid fiw_object
Definition: io_fop.h:42
void m0_stob_io_fop_init(void)
Definition: io_fop.c:616
uint8_t * fi_buf
Definition: io_fop.h:38
struct m0_fop_type m0_stob_io_create_fopt
Definition: io_fop.c:63
struct m0_fi_value firr_value
Definition: io_fop.h:58