Motr  M0
op.h File Reference
#include "lib/buf.h"
#include "lib/tlist.h"
#include "lib/types.h"
#include "lib/mutex.h"
#include "sm/sm.h"
Include dependency graph for op.h:

Go to the source code of this file.

Data Structures

struct  m0_be_op
 

Macros

#define __MOTR_BE_OP_H__
 
#define M0_BE_OP_SYNC(op_obj, action)
 
#define M0_BE_OP_SYNC_RC(op_obj, action)
 
#define M0_BE_OP_SYNC_WITH(op, action)
 
#define M0_BE_OP_SYNC_WITH_RC(op, action)
 
#define M0_BE_OP_SYNC_RET(op_obj, action, member)
 
#define M0_BE_OP_SYNC_RET_WITH(op, action, member)
 

Typedefs

typedef void(* m0_be_op_cb_t) (struct m0_be_op *op, void *param)
 

Enumerations

enum  m0_be_op_state {
  M0_BOS_INVALID, M0_BOS_INIT, M0_BOS_ACTIVE, M0_BOS_DONE,
  M0_BOS_GC
}
 
enum  m0_be_op_type { M0_BOP_TREE, M0_BOP_LIST }
 

Functions

M0_INTERNAL void m0_be_op_init (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_fini (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_lock (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_unlock (struct m0_be_op *op)
 
M0_INTERNAL bool m0_be_op_is_locked (const struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_reset (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_active (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_done (struct m0_be_op *op)
 
M0_INTERNAL bool m0_be_op_is_done (struct m0_be_op *op)
 
M0_INTERNAL void m0_be_op_callback_set (struct m0_be_op *op, m0_be_op_cb_t cb, void *param, enum m0_be_op_state state)
 
M0_INTERNAL void m0_be_op_wait (struct m0_be_op *op)
 
M0_INTERNAL int m0_be_op_tick_ret (struct m0_be_op *op, struct m0_fom *fom, int next_state)
 
M0_INTERNAL void m0_be_op_set_add (struct m0_be_op *parent, struct m0_be_op *child)
 
M0_INTERNAL void m0_be_op_rc_set (struct m0_be_op *op, int rc)
 
M0_INTERNAL int m0_be_op_rc (struct m0_be_op *op)
 

Macro Definition Documentation

◆ __MOTR_BE_OP_H__

#define __MOTR_BE_OP_H__

Definition at line 26 of file op.h.