Motr  M0
m0_idx_query_ops Struct Reference

#include <idx.h>

Collaboration diagram for m0_idx_query_ops:
Collaboration graph

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)
 

Detailed Description

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.

Definition at line 121 of file idx.h.

Field Documentation

◆ iqo_del

int(* iqo_del) (struct m0_op_idx *oi)

Definition at line 131 of file idx.h.

◆ iqo_get

int(* iqo_get) (struct m0_op_idx *oi)

Definition at line 129 of file idx.h.

◆ iqo_namei_create

int(* iqo_namei_create) (struct m0_op_idx *oi)

Definition at line 123 of file idx.h.

◆ iqo_namei_delete

int(* iqo_namei_delete) (struct m0_op_idx *oi)

Definition at line 124 of file idx.h.

◆ iqo_namei_list

int(* iqo_namei_list) (struct m0_op_idx *oi)

Definition at line 126 of file idx.h.

◆ iqo_namei_lookup

int(* iqo_namei_lookup) (struct m0_op_idx *oi)

Definition at line 125 of file idx.h.

◆ iqo_next

int(* iqo_next) (struct m0_op_idx *oi)

Definition at line 132 of file idx.h.

◆ iqo_put

int(* iqo_put) (struct m0_op_idx *oi)

Definition at line 130 of file idx.h.


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