Motr  M0
fom_interpose.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-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_FOP_FOM_INTERPOSE_H__
26 #define __MOTR_FOP_FOM_INTERPOSE_H__
27 
28 #include "fop/fom.h"
29 
31 
45  const struct m0_fom_ops *fi_orig;
47 };
48 
62  int (*io_pre [64])(struct m0_fom *fom, struct m0_fom_interpose *proxy);
71  int (*io_post[64])(struct m0_fom *fom, struct m0_fom_interpose *proxy,
72  int result);
73 };
74 
81  struct m0_fom *ft_leader;
88  void (*ft_end)(struct m0_fom_thralldom *thrall,
89  struct m0_fom *serf);
90 };
91 
96 M0_INTERNAL void m0_fom_interpose_enter(struct m0_fom *fom,
97  struct m0_fom_interpose *proxy);
98 
100 M0_INTERNAL void m0_fom_interpose_leave(struct m0_fom *fom,
101  struct m0_fom_interpose *proxy);
102 
103 
113 M0_INTERNAL void m0_fom_enthrall(struct m0_fom *leader, struct m0_fom *serf,
114  struct m0_fom_thralldom *thrall,
115  void (*end)(struct m0_fom_thralldom *thrall,
116  struct m0_fom *serf));
117 
118 #endif /* __MOTR_FOP_FOM_INTERPOSE_H__ */
119 
120 /*
121  * Local variables:
122  * c-indentation-style: "K&R"
123  * c-basic-offset: 8
124  * tab-width: 8
125  * fill-column: 80
126  * scroll-step: 1
127  * End:
128  */
int(* io_post[64])(struct m0_fom *fom, struct m0_fom_interpose *proxy, int result)
Definition: fom_interpose.h:71
M0_INTERNAL void m0_fom_interpose_enter(struct m0_fom *fom, struct m0_fom_interpose *proxy)
Definition: fom_interpose.c:81
void(* ft_end)(struct m0_fom_thralldom *thrall, struct m0_fom *serf)
Definition: fom_interpose.h:88
struct m0_fom * ft_leader
Definition: fom_interpose.h:81
int(* io_pre[64])(struct m0_fom *fom, struct m0_fom_interpose *proxy)
Definition: fom_interpose.h:62
M0_INTERNAL void m0_fom_enthrall(struct m0_fom *leader, struct m0_fom *serf, struct m0_fom_thralldom *thrall, void(*end)(struct m0_fom_thralldom *thrall, struct m0_fom *serf))
struct m0_fom_thralldom thrall
Definition: ms_fom_ut.c:110
const struct m0_fom_ops * fi_orig
Definition: fom_interpose.h:45
Definition: dump.c:103
struct m0_fom_ops fi_shim
Definition: fom_interpose.h:44
Definition: fom.h:481
M0_INTERNAL void m0_fom_interpose_leave(struct m0_fom *fom, struct m0_fom_interpose *proxy)
Definition: fom_interpose.c:95
const struct m0_fom_interpose_ops * fi_ops
Definition: fom_interpose.h:46
struct m0_fom_interpose ft_fief
Definition: fom_interpose.h:86