Motr  M0
Pre-Loading of Configuration Cache

Detailed Functional Specification. More...

Functions

M0_INTERNAL int m0_confstr_parse (const char *str, struct m0_confx **out)
 
M0_INTERNAL void m0_confx_free (struct m0_confx *enc)
 
M0_INTERNAL int m0_confx_to_string (struct m0_confx *confx, char **out)
 
M0_INTERNAL void m0_confx_string_free (char *str)
 

Detailed Description

Detailed Functional Specification.

See also
DLD of configuration caching, Functional Specification

Function Documentation

◆ m0_confstr_parse()

M0_INTERNAL int m0_confstr_parse ( const char *  str,
struct m0_confx **  out 
)

Encodes configuration string.

Note
If the call succeeds, the user is responsible for freeing allocated memory with m0_confx_free(*out).

Definition at line 41 of file preload.c.

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

◆ m0_confx_free()

M0_INTERNAL void m0_confx_free ( struct m0_confx enc)

Frees the memory, dynamically allocated by m0_confstr_parse().

Definition at line 33 of file preload.c.

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

◆ m0_confx_string_free()

M0_INTERNAL void m0_confx_string_free ( char *  str)
Precondition
m0_addr_is_aligned(str, PAGE_SHIFT)

Definition at line 86 of file preload.c.

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

◆ m0_confx_to_string()

M0_INTERNAL int m0_confx_to_string ( struct m0_confx confx,
char **  out 
)
Note
If the call succeeds, the user is responsible for calling m0_confx_string_free(*out).

Definition at line 60 of file preload.c.

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