Motr  M0
m0_isc_comp Struct Reference

#include <isc_service.h>

Collaboration diagram for m0_isc_comp:
Collaboration graph

Data Fields

struct m0_fid ic_fid
 
char * ic_name
 
struct m0_hlink ic_hlink
 
uint64_t ic_gen
 
int(* ic_op )(struct m0_buf *args_in, struct m0_buf *result, struct m0_isc_comp_private *comp_data, int *rc)
 
enum m0_isc_comp_state ic_reg_state
 
uint32_t ic_ref_count
 
uint64_t ic_magic
 

Detailed Description

Represents a computation abstraction. This structure resides with the hash table that's part of ISC service. A concurrent access to a computation is handled by concurrent hash table.

Definition at line 49 of file isc_service.h.

Field Documentation

◆ ic_fid

struct m0_fid ic_fid

A unique identifier for a computation.

Definition at line 51 of file isc_service.h.

◆ ic_gen

uint64_t ic_gen

A generation count for cookie associated with this computation.

Definition at line 57 of file isc_service.h.

◆ ic_hlink

struct m0_hlink ic_hlink

A linkage in hash-table for storing computations.

Definition at line 55 of file isc_service.h.

◆ ic_magic

uint64_t ic_magic

Definition at line 70 of file isc_service.h.

◆ ic_name

char* ic_name

Human readable name of the computation.

Definition at line 53 of file isc_service.h.

◆ ic_op

int(* ic_op) (struct m0_buf *args_in, struct m0_buf *result, struct m0_isc_comp_private *comp_data, int *rc)

A pointer to operation. The output of the function is populated in result and caller is expected to free it after usage.

Definition at line 62 of file isc_service.h.

◆ ic_ref_count

uint32_t ic_ref_count

Count for ongoing instances of the operation.

Definition at line 69 of file isc_service.h.

◆ ic_reg_state

enum m0_isc_comp_state ic_reg_state

Indicates one of the states from m0_isc_comp_state.

Definition at line 67 of file isc_service.h.


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