Motr  M0
m0_addb2_mach_ops Struct Reference

#include <addb2.h>

Collaboration diagram for m0_addb2_mach_ops:
Collaboration graph

Data Fields

int(* apo_submit )(struct m0_addb2_mach *mach, struct m0_addb2_trace_obj *tobj)
 
void(* apo_idle )(struct m0_addb2_mach *mach)
 

Detailed Description

Machine operations vector provided by SYSTEM.

See also
fop/fom.c:addb2_ops.

Definition at line 353 of file addb2.h.

Field Documentation

◆ apo_idle

void(* apo_idle) (struct m0_addb2_mach *mach)

Invoked by IMPLEMENTATION to notify SYSTEM that stopped machine completed its operation and can be finalised.

Definition at line 374 of file addb2.h.

◆ apo_submit

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).

Return values
+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().

Definition at line 368 of file addb2.h.


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