Motr  M0
m0_fom_interpose_ops Struct Reference

#include <fom_interpose.h>

Collaboration diagram for m0_fom_interpose_ops:
Collaboration graph

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)
 

Detailed Description

Functions to be executed around interposed fom tick.

Definition at line 52 of file fom_interpose.h.

Field Documentation

◆ io_post

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.

◆ io_pre

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.


The documentation for this struct was generated from the following file: