Motr  M0
Motr initialisation calls.

Data Structures

struct  init_fini_call
 

Functions

static void fini_nr (struct init_fini_call *arr, int nr)
 
static int init_nr (struct init_fini_call *arr, int nr)
 
M0_INTERNAL int m0_init_once (struct m0 *instance)
 
M0_INTERNAL void m0_fini_once (void)
 
int m0_init (struct m0 *instance)
 
void m0_fini (void)
 
int m0_resume (struct m0 *instance)
 
void m0_quiesce (void)
 
M0_INTERNAL int m0_subsystems_init (void)
 
M0_INTERNAL void m0_subsystems_fini (void)
 
M0_INTERNAL int m0_quiesce_init (void)
 
M0_INTERNAL void m0_quiesce_fini (void)
 

Variables

struct init_fini_call quiesce []
 
struct init_fini_call once []
 
struct init_fini_call subsystem []
 
static bool initialised_once = false
 

Detailed Description

Function Documentation

◆ fini_nr()

static void fini_nr ( struct init_fini_call arr,
int  nr 
)
static

Definition at line 248 of file init.c.

Here is the caller graph for this function:

◆ init_nr()

static int init_nr ( struct init_fini_call arr,
int  nr 
)
static

Definition at line 256 of file init.c.

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

◆ m0_fini()

void m0_fini ( void  )

Finalizes all sub-systems initialised by m0_init().

Definition at line 318 of file init.c.

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

◆ m0_fini_once()

M0_INTERNAL void m0_fini_once ( void  )

Definition at line 302 of file init.c.

Here is the call graph for this function:

◆ m0_init()

int m0_init ( struct m0 instance)

Performs all global initializations of M0 sub-systems. The nomenclature of sub-systems to be initialised depends on the build configuration.

See also
m0_fini().

Definition at line 310 of file init.c.

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

◆ m0_init_once()

M0_INTERNAL int m0_init_once ( struct m0 instance)

Definition at line 279 of file init.c.

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

◆ m0_quiesce()

void m0_quiesce ( void  )

Finalizes part global initializations of M0 sub-systems, for starting reconfigure Motr. Sub-systems finalize from high level to quiese level.

See also
M0_LEVEL_INST_QUIESCE_SYSTEM.
m0_init(),
m0_fini(),
m0_resume().

Definition at line 328 of file init.c.

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

◆ m0_quiesce_fini()

M0_INTERNAL void m0_quiesce_fini ( void  )

Definition at line 348 of file init.c.

Here is the call graph for this function:

◆ m0_quiesce_init()

M0_INTERNAL int m0_quiesce_init ( void  )

Definition at line 343 of file init.c.

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

◆ m0_resume()

int m0_resume ( struct m0 instance)

Performs part global initializations of M0 sub-systems, when stopped before reconfigure Motr.

See also
m0_init(),
m0_fini(),
m0_quiesce().

Definition at line 323 of file init.c.

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

◆ m0_subsystems_fini()

M0_INTERNAL void m0_subsystems_fini ( void  )

Definition at line 338 of file init.c.

Here is the call graph for this function:

◆ m0_subsystems_init()

M0_INTERNAL int m0_subsystems_init ( void  )

Definition at line 333 of file init.c.

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

Variable Documentation

◆ initialised_once

bool initialised_once = false
static

Flag protecting initialisations to be done only once per process address space (or kernel).

Definition at line 277 of file init.c.

◆ once

struct init_fini_call once[]
Initial value:
= {
}
M0_INTERNAL void m0_threads_once_fini(void)
Definition: kthread.c:94
M0_INTERNAL int m0_threads_once_init(void)
Definition: kthread.c:89

Definition at line 146 of file init.c.

◆ quiesce

struct init_fini_call quiesce[]
Initial value:
= {
{ &m0_time_init, &m0_time_fini, "time" },
{ &m0_xcode_init, &m0_xcode_fini, "xcode" },
{ &m0_trace_init, &m0_trace_fini, "trace" },
{ &m0_fi_init, &m0_fi_fini, "finject" },
}
M0_INTERNAL void m0_time_fini(void)
Definition: time.c:130
M0_INTERNAL int m0_fi_init(void)
Definition: finject_init.c:40
void m0_xcode_fini(void)
Definition: init.c:60
int m0_xcode_init(void)
Definition: init.c:43
M0_INTERNAL void m0_trace_fini(void)
Definition: trace.c:148
M0_INTERNAL int m0_time_init(void)
Definition: time.c:115
M0_INTERNAL int m0_trace_init(void)
Definition: trace.c:132
M0_INTERNAL void m0_fi_fini(void)
Definition: finject_init.c:47

Definition at line 139 of file init.c.

◆ subsystem

struct init_fini_call subsystem[]

Definition at line 154 of file init.c.