Motr  M0
session_foms.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_RPC_SESSION_FOM_H__
26 #define __MOTR_RPC_SESSION_FOM_H__
27 
28 #include "fop/fop.h"
29 #include "rpc/session_fops.h"
30 #include "rpc/session_fops_xc.h"
31 #include "fop/fom.h"
32 #include "fop/fom_generic.h" /* M0_FOPH_NR */
33 
43 /*
44  * FOM to execute "RPC connection create" request
45  */
46 
49 };
50 
52 extern const struct m0_fom_ops m0_rpc_fom_conn_establish_ops;
53 
54 M0_INTERNAL size_t m0_rpc_session_default_home_locality(const struct m0_fom
55  *fom);
56 M0_INTERNAL int m0_rpc_fom_conn_establish_tick(struct m0_fom *fom);
57 M0_INTERNAL void m0_rpc_fom_conn_establish_fini(struct m0_fom *fom);
58 
59 /*
60  * FOM to execute "Session Create" request
61  */
62 
65 };
66 
69 
70 M0_INTERNAL int m0_rpc_fom_session_establish_tick(struct m0_fom *fom);
71 M0_INTERNAL void m0_rpc_fom_session_establish_fini(struct m0_fom *fom);
72 
73 /*
74  * FOM to execute session terminate request
75  */
76 
79 };
80 
83 
84 M0_INTERNAL int m0_rpc_fom_session_terminate_tick(struct m0_fom *fom);
85 M0_INTERNAL void m0_rpc_fom_session_terminate_fini(struct m0_fom *fom);
86 
87 /*
88  * FOM to execute RPC connection terminate request
89  */
90 
93 };
94 
96 extern const struct m0_fom_ops m0_rpc_fom_conn_terminate_ops;
97 
98 M0_INTERNAL int m0_rpc_fom_conn_terminate_tick(struct m0_fom *fom);
99 M0_INTERNAL void m0_rpc_fom_conn_terminate_fini(struct m0_fom *fom);
100 
101 
102 /*
103  * Context fom used store fom data between its processing phases.
104  */
110 
116 };
117 
118 #endif
119 
121 /*
122  * Local variables:
123  * c-indentation-style: "K&R"
124  * c-basic-offset: 8
125  * tab-width: 8
126  * fill-column: 80
127  * scroll-step: 1
128  * End:
129  */
M0_INTERNAL void m0_rpc_fom_conn_terminate_fini(struct m0_fom *fom)
M0_INTERNAL void m0_rpc_fom_session_terminate_fini(struct m0_fom *fom)
M0_INTERNAL void m0_rpc_fom_session_establish_fini(struct m0_fom *fom)
const struct m0_fom_ops m0_rpc_fom_conn_terminate_ops
Definition: session_foms.c:548
struct m0_fom_type m0_rpc_fom_conn_terminate_type
const struct m0_fom_ops m0_rpc_fom_session_establish_ops
Definition: session_foms.c:308
m0_rpc_fom_session_establish_phase
Definition: session_foms.h:63
struct m0_fom_type m0_rpc_fom_conn_establish_type
m0_rpc_fom_conn_terminate_phase
Definition: session_foms.h:91
struct m0_fom_type m0_rpc_fom_session_terminate_type
const struct m0_fom_ops m0_rpc_fom_session_terminate_ops
Definition: session_foms.c:426
m0_rpc_fom_conn_establish_phase
Definition: session_foms.h:47
M0_INTERNAL int m0_rpc_fom_conn_terminate_tick(struct m0_fom *fom)
Definition: session_foms.c:591
M0_INTERNAL int m0_rpc_fom_session_terminate_tick(struct m0_fom *fom)
Definition: session_foms.c:436
m0_rpc_fom_session_terminate_phase
Definition: session_foms.h:77
struct m0_fom_type m0_rpc_fom_session_establish_type
Definition: dump.c:103
M0_INTERNAL size_t m0_rpc_session_default_home_locality(const struct m0_fom *fom)
Definition: session_foms.c:167
Definition: fom.h:481
M0_INTERNAL void m0_rpc_fom_conn_establish_fini(struct m0_fom *fom)
const struct m0_fom_ops m0_rpc_fom_conn_establish_ops
Definition: session_foms.c:157
M0_INTERNAL int m0_rpc_fom_session_establish_tick(struct m0_fom *fom)
Definition: session_foms.c:318
struct m0_rpc_session * ssf_term_session
Definition: session_foms.h:115
M0_INTERNAL int m0_rpc_fom_conn_establish_tick(struct m0_fom *fom)
Definition: session_foms.c:175