Motr  M0
isc_service.h File Reference
#include "reqh/reqh_service.h"
#include "lib/hash.h"
Include dependency graph for isc_service.h:

Go to the source code of this file.

Data Structures

struct  m0_isc_comp
 
struct  m0_reqh_isc_service
 

Macros

#define __MOTR_ISCSERVICE_ISC_SERVICE_H__
 

Enumerations

enum  m0_isc_comp_state { M0_ICS_REGISTERED, M0_ICS_UNREGISTERED }
 

Functions

M0_INTERNAL int m0_isc_mod_init (void)
 
M0_INTERNAL void m0_isc_mod_fini (void)
 
M0_INTERNAL struct m0_htablem0_isc_htable_get (void)
 
M0_INTERNAL int m0_iscs_register (void)
 
M0_INTERNAL void m0_iscs_unregister (void)
 
 M0_HT_DECLARE (m0_isc, M0_INTERNAL, struct m0_isc_comp, struct m0_fid)
 

Variables

struct m0_reqh_service_type m0_iscs_type
 

Macro Definition Documentation

◆ __MOTR_ISCSERVICE_ISC_SERVICE_H__

#define __MOTR_ISCSERVICE_ISC_SERVICE_H__

Definition at line 26 of file isc_service.h.

Enumeration Type Documentation

◆ m0_isc_comp_state

State of a computation with respect to its registration with the ISC service.

Enumerator
M0_ICS_REGISTERED 

If a computation is present in hash-table.

M0_ICS_UNREGISTERED 

If a computation is not present in hash-table.

Definition at line 37 of file isc_service.h.

Function Documentation

◆ M0_HT_DECLARE()

M0_HT_DECLARE ( m0_isc  ,
M0_INTERNAL  ,
struct m0_isc_comp  ,
struct m0_fid   
)

Methods for hash-table holding external computations linked with Motr.

◆ m0_isc_htable_get()

M0_INTERNAL struct m0_htable* m0_isc_htable_get ( void  )

Returns the hash-table of computations stored with m0 instance.

Definition at line 83 of file isc_service.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_isc_mod_fini()

M0_INTERNAL void m0_isc_mod_fini ( void  )

Definition at line 99 of file isc_service.c.

Here is the call graph for this function:

◆ m0_isc_mod_init()

M0_INTERNAL int m0_isc_mod_init ( void  )

Creates the hash-table of computations in m0 instance.

Definition at line 88 of file isc_service.c.

Here is the call graph for this function:

◆ m0_iscs_register()

M0_INTERNAL int m0_iscs_register ( void  )

Definition at line 104 of file isc_service.c.

Here is the call graph for this function:

◆ m0_iscs_unregister()

M0_INTERNAL void m0_iscs_unregister ( void  )

Definition at line 119 of file isc_service.c.

Here is the call graph for this function:

Variable Documentation

◆ m0_iscs_type

struct m0_reqh_service_type m0_iscs_type

Definition at line 76 of file isc_service.c.