Motr  M0
st_kmain.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include "motr/client.h"
#include "motr/st/st.h"
#include "motr/st/st_assert.h"
Include dependency graph for st_kmain.c:

Go to the source code of this file.

Enumerations

enum  idx_service { IDX_MOTR = 1, IDX_CASS, IDX_MOTR = 1, IDX_CASS }
 

Functions

 MODULE_LICENSE ()
 
 module_param (local_addr, charp, S_IRUGO)
 
 MODULE_PARM_DESC (local_addr, "Local Address")
 
 module_param (ha_addr, charp, S_IRUGO)
 
 MODULE_PARM_DESC (ha_addr, "HA Address")
 
 module_param (prof, charp, S_IRUGO)
 
 MODULE_PARM_DESC (prof, "Profile Opt")
 
 module_param (proc_fid, charp, S_IRUGO)
 
 MODULE_PARM_DESC (proc_fid, "Process FID for rmservice")
 
 module_param (index_service, int, S_IRUGO)
 
 MODULE_PARM_DESC (index_service, "Index service")
 
 module_param (tests, charp, S_IRUGO)
 
 MODULE_PARM_DESC (tests, "ST tests")
 
static int st_init_instance (void)
 
static void st_fini_instance (void)
 
static int __init st_module_init (void)
 
static void __exit st_module_fini (void)
 

Variables

static char * local_addr
 
static char * ha_addr
 
static char * prof
 
static char * proc_fid
 
static char * tests
 
static int index_service
 
static struct m0_config conf
 
static struct m0_idx_dix_config dix_conf
 

Enumeration Type Documentation

◆ idx_service

Enumerator
IDX_MOTR 
IDX_CASS 
IDX_MOTR 
IDX_CASS 

Definition at line 42 of file st_kmain.c.

Function Documentation

◆ MODULE_LICENSE()

MODULE_LICENSE ( )

◆ module_param() [1/6]

module_param ( local_addr  ,
charp  ,
S_IRUGO   
)

◆ module_param() [2/6]

module_param ( ha_addr  ,
charp  ,
S_IRUGO   
)

◆ module_param() [3/6]

module_param ( prof  ,
charp  ,
S_IRUGO   
)

◆ module_param() [4/6]

module_param ( proc_fid  ,
charp  ,
S_IRUGO   
)

◆ module_param() [5/6]

module_param ( index_service  ,
int  ,
S_IRUGO   
)

◆ module_param() [6/6]

module_param ( tests  ,
charp  ,
S_IRUGO   
)

◆ MODULE_PARM_DESC() [1/6]

MODULE_PARM_DESC ( local_addr  ,
"Local Address"   
)

◆ MODULE_PARM_DESC() [2/6]

MODULE_PARM_DESC ( ha_addr  ,
"HA Address"   
)

◆ MODULE_PARM_DESC() [3/6]

MODULE_PARM_DESC ( prof  ,
"Profile Opt"   
)

◆ MODULE_PARM_DESC() [4/6]

MODULE_PARM_DESC ( proc_fid  ,
"Process FID for rmservice  
)

◆ MODULE_PARM_DESC() [5/6]

MODULE_PARM_DESC ( index_service  ,
"Index service  
)

◆ MODULE_PARM_DESC() [6/6]

MODULE_PARM_DESC ( tests  ,
"ST tests  
)

◆ st_fini_instance()

static void st_fini_instance ( void  )
static

Definition at line 108 of file st_kmain.c.

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

◆ st_init_instance()

static int st_init_instance ( void  )
static

Definition at line 75 of file st_kmain.c.

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

◆ st_module_fini()

static void __exit st_module_fini ( void  )
static

Definition at line 147 of file st_kmain.c.

Here is the call graph for this function:

◆ st_module_init()

static int __init st_module_init ( void  )
static

Definition at line 116 of file st_kmain.c.

Here is the call graph for this function:

Variable Documentation

◆ conf

struct m0_config conf
static

Definition at line 54 of file st_kmain.c.

◆ dix_conf

struct m0_idx_dix_config dix_conf
static

Definition at line 55 of file st_kmain.c.

◆ ha_addr

char* ha_addr
static

Definition at line 49 of file st_kmain.c.

◆ index_service

int index_service
static

Definition at line 53 of file st_kmain.c.

◆ local_addr

char* local_addr
static

Definition at line 48 of file st_kmain.c.

◆ proc_fid

char* proc_fid
static

Definition at line 51 of file st_kmain.c.

◆ prof

char* prof
static

Definition at line 50 of file st_kmain.c.

◆ tests

char* tests
static

Definition at line 52 of file st_kmain.c.