Motr  M0
ss_fops.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2014-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_SSS_SS_FOPS_H__
26 #define __MOTR_SSS_SS_FOPS_H__
27 
28 #include "conf/onwire.h"
29 #include "lib/types_xc.h"
30 #include "lib/buf_xc.h"
31 #include "fid/fid.h"
32 #include "fid/fid_xc.h"
33 
39 struct m0_ref;
40 extern struct m0_fop_type m0_fop_ss_fopt;
41 extern struct m0_fop_type m0_fop_ss_rep_fopt;
44 
53 };
54 
56 struct m0_sss_req {
61  uint32_t ss_cmd;
66  struct m0_buf ss_name;
71  struct m0_fid ss_id;
73  struct m0_buf ss_param;
74 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
75 
77 struct m0_sss_rep {
81  int32_t ssr_rc;
86  uint32_t ssr_state;
87 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
88 
89 M0_INTERNAL int m0_ss_fops_init(void);
90 M0_INTERNAL void m0_ss_fops_fini(void);
91 M0_INTERNAL void m0_ss_fop_release(struct m0_ref *ref);
92 
94 #endif /* __MOTR_SSS_SS_FOPS_H__ */
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  */
M0_INTERNAL int m0_ss_fops_init(void)
Definition: ss_fops.c:51
uint32_t ssr_state
Definition: ss_fops.h:86
struct m0_fop_type m0_fop_ss_fopt
Definition: ss_fops.c:39
uint32_t ss_cmd
Definition: ss_fops.h:61
Definition: buf.h:37
struct m0_fop_type m0_fop_ss_svc_list_rep_fopt
struct m0_fid ss_id
Definition: ss_fops.h:71
struct m0_fop_type m0_fop_ss_rep_fopt
Definition: ss_fops.c:40
Definition: refs.h:34
struct m0_buf ss_name
Definition: ss_fops.h:66
M0_INTERNAL void m0_ss_fop_release(struct m0_ref *ref)
Definition: ss_fops.c:96
m0_sss_req_cmd
Definition: ss_fops.h:46
Definition: fid.h:38
struct m0_fop_type m0_fop_ss_svc_list_fopt
M0_INTERNAL void m0_ss_fops_fini(void)
Definition: ss_fops.c:90
enum m0_sss_req_cmd M0_XCA_DOMAIN
int32_t ssr_rc
Definition: ss_fops.h:81
struct m0_buf ss_param
Definition: ss_fops.h:73