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
{
60
M0_FI_DISP_DISABLE
,
61
M0_FI_DISP_ENABLE
,
62
M0_FI_DISP_ENABLE_ONCE
,
63
M0_FI_DISP_RANDOMIZE
,
64
M0_FI_DISP_DO_OFF_N_ON_M
,
65
};
66
68
struct
m0_fi_command_req
{
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
77
struct
m0_fi_command_rep
{
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
*/
M0_XCA_DOMAIN
struct m0_fi_command_req M0_XCA_DOMAIN(rpc)
M0_FI_DISP_DISABLE
Definition:
fi_command.h:60
tag
static uint64_t tag(uint8_t code, uint64_t id)
Definition:
addb2.c:1047
M0_FI_DISP_RANDOMIZE
Definition:
fi_command.h:63
session.h
M0_FI_DISP_ENABLE
Definition:
fi_command.h:61
m0_fi_command_rep::fcp_rc
int32_t fcp_rc
Definition:
fi_command.h:78
m0_buf
Definition:
buf.h:37
xcode.h
m0_fi_command_req
Definition:
fi_command.h:68
m0_fi_command_req::fcr_num1
uint32_t fcr_num1
Definition:
fi_command.h:72
m0_fi_command_req::fcr_func
struct m0_buf fcr_func
Definition:
fi_command.h:69
m0_fi_command_req::fcr_disp
uint8_t fcr_disp
Definition:
fi_command.h:71
M0_FI_DISP_ENABLE_ONCE
Definition:
fi_command.h:62
m0_fi_command_req::fcr_num2
uint32_t fcr_num2
Definition:
fi_command.h:73
m0_fi_command_rep
Definition:
fi_command.h:77
m0_rpc_session
Definition:
session.h:305
m0_fi_command_post_sync
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
m0_fi_command_req::fcr_tag
struct m0_buf fcr_tag
Definition:
fi_command.h:70
M0_FI_DISP_DO_OFF_N_ON_M
Definition:
fi_command.h:64
m0_fi_disp
m0_fi_disp
Definition:
fi_command.h:59
fis
fi_command.h
Generated on Thu Apr 14 2022 14:02:55 for Motr by
1.8.14