Motr  M0
fi_command.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2017-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_FIS_FI_COMMAND_H__
26 #define __MOTR_FIS_FI_COMMAND_H__
27 
28 #include "xcode/xcode.h"
29 #include "lib/buf_xc.h"
30 #include "rpc/session.h"
31 
51 
59 enum m0_fi_disp {
65 };
66 
69  struct m0_buf fcr_func;
70  struct m0_buf fcr_tag;
71  uint8_t fcr_disp;
72  uint32_t fcr_num1;
73  uint32_t fcr_num2;
74 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
75 
78  int32_t fcp_rc;
79 } M0_XCA_RECORD M0_XCA_DOMAIN(rpc);
80 
94 M0_INTERNAL int m0_fi_command_post_sync(struct m0_rpc_session *sess,
95  const char *func,
96  const char *tag,
97  enum m0_fi_disp disp,
98  uint32_t num1,
99  uint32_t num2);
100 
102 #endif /* __MOTR_FIS_FI_COMMAND_H__ */
103 
104 /*
105  * Local variables:
106  * c-indentation-style: "K&R"
107  * c-basic-offset: 8
108  * tab-width: 8
109  * fill-column: 80
110  * scroll-step: 1
111  * End:
112  */
struct m0_fi_command_req M0_XCA_DOMAIN(rpc)
static uint64_t tag(uint8_t code, uint64_t id)
Definition: addb2.c:1047
Definition: buf.h:37
uint32_t fcr_num1
Definition: fi_command.h:72
struct m0_buf fcr_func
Definition: fi_command.h:69
uint8_t fcr_disp
Definition: fi_command.h:71
uint32_t fcr_num2
Definition: fi_command.h:73
M0_INTERNAL int m0_fi_command_post_sync(struct m0_rpc_session *sess, const char *func, const char *tag, enum m0_fi_disp disp, uint32_t num1, uint32_t num2)
Definition: fi_command.c:56
struct m0_buf fcr_tag
Definition: fi_command.h:70
m0_fi_disp
Definition: fi_command.h:59