Motr  M0
confc_fop Struct Reference
Collaboration diagram for confc_fop:
Collaboration graph

Data Fields

struct m0_fop cf_fop
 
struct m0_confc_ctxcf_ctx
 

Detailed Description

Wrapper structure, enclosing m0_fop and a pointer to m0_confc_ctx.

This structure serves two purposes:

  1. It lets rpc layer own the fops created by confc.

    The fop is freed by rpc layer during rpc session destruction, initiated by m0_confc_fini().

    We cannot embed m0_fop into a m0_confc_ctx, because m0_confc_ctx may leave the scope before m0_confc_fini() is called. In this case the pointer to rpc item, known to rpc session, would be invalidated. Session destruction would fail.

  2. It allows on_replied() function to obtain m0_confc_ctx object, given m0_rpc_item. See item_to_ctx().

Definition at line 1709 of file confc.c.

Field Documentation

◆ cf_ctx

struct m0_confc_ctx* cf_ctx

Definition at line 1715 of file confc.c.

◆ cf_fop

struct m0_fop cf_fop

Definition at line 1714 of file confc.c.


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