Motr
M0
|
#include <fom_interpose.h>
Data Fields | |
int(* | io_pre [64])(struct m0_fom *fom, struct m0_fom_interpose *proxy) |
int(* | io_post [64])(struct m0_fom *fom, struct m0_fom_interpose *proxy, int result) |
Functions to be executed around interposed fom tick.
Definition at line 52 of file fom_interpose.h.
int(* io_post[64])(struct m0_fom *fom, struct m0_fom_interpose *proxy, int result) |
Functions from this array are executed after the original fom tick is executed.
Post-functions take the result of the original tick as an additional parameter. Whatever is returned by the post-function is returned as the result of the tick.
Definition at line 71 of file fom_interpose.h.
int(* io_pre[64])(struct m0_fom *fom, struct m0_fom_interpose *proxy) |
Functions from this array are executed before the original fom tick is executed.
A pre-function can return either normal tick return value (i.e., FSO_AGAIN or FSO_WAIT) or a special INTERPOSE_CONT value. In the former case, the returned value is immediately returned as the tick result. Otherwise, original fom tick function is called.
Definition at line 62 of file fom_interpose.h.