Motr
M0
|
#include <idx.h>
Data Fields | |
int(* | iqo_namei_create )(struct m0_op_idx *oi) |
int(* | iqo_namei_delete )(struct m0_op_idx *oi) |
int(* | iqo_namei_lookup )(struct m0_op_idx *oi) |
int(* | iqo_namei_list )(struct m0_op_idx *oi) |
int(* | iqo_get )(struct m0_op_idx *oi) |
int(* | iqo_put )(struct m0_op_idx *oi) |
int(* | iqo_del )(struct m0_op_idx *oi) |
int(* | iqo_next )(struct m0_op_idx *oi) |
Query operations for an index service. The operations in this data structure can be divided into 2 groups: (a) Operations over indices: iqo_namei_create/delete/lookup/list. (b) Queries on a specific index: get/put/del/next, see the comments above for details.
Returned value of query operations: = 0: the query is executed synchronously and returns successfully. < 0: the query fails. = 1: the driver successes in launching the query asynchronously.
idx_op_ast_complete()/fail() must be called correspondingly when an index operation is completed successfully or fails. This gives Client a chance to take back control and move operation's state forward.