Motr
M0
|
#include <addb2.h>
Data Fields | |
int(* | apo_submit )(struct m0_addb2_mach *mach, struct m0_addb2_trace_obj *tobj) |
void(* | apo_idle )(struct m0_addb2_mach *mach) |
Machine operations vector provided by SYSTEM.
void(* apo_idle) (struct m0_addb2_mach *mach) |
int(* apo_submit) (struct m0_addb2_mach *mach, struct m0_addb2_trace_obj *tobj) |
Invoked by IMPLEMENTATION to send a collection of records to network or storage (at SYSTEM discretion).
+ve | - the trace was accepted for processing. m0_addb2_trace_done() must be called against this trace eventually. |
0 | - the trace was "processed instantly", IMPLEMENTATION is free to re-use trace after return. Submission errors are included in this case. |
see fop/fom.c:loc_addb2_submit().