Motr  M0
fd_internal.h File Reference
#include "fd/fd.h"
#include "conf/obj.h"
#include "lib/misc.h"
Include dependency graph for fd_internal.h:

Go to the source code of this file.

Data Structures

struct  m0_fd__tree_cursor
 

Macros

#define __MOTR_FD_INT_H__
 

Functions

M0_INTERNAL int m0_fd__tile_init (struct m0_fd_tile *tile, const struct m0_pdclust_attr *la_attr, uint64_t *children_nr, uint64_t depth)
 
M0_INTERNAL void m0_fd__tile_populate (struct m0_fd_tile *tile)
 
M0_INTERNAL int m0_fd__tree_root_create (struct m0_fd_tree *tree, uint64_t root_children)
 
M0_INTERNAL int m0_fd__tree_level_populate (const struct m0_conf_pver *pv, struct m0_fd_tree *tree, uint32_t level)
 
M0_INTERNAL int m0_fd__tree_node_init (struct m0_fd_tree *tree, struct m0_fd_tree_node *node, uint16_t child_nr, const struct m0_fd__tree_cursor *cursor)
 
M0_INTERNAL void m0_fd__tree_node_fini (struct m0_fd_tree *tree, struct m0_fd_tree_node *node)
 
M0_INTERNAL int m0_fd__tree_cursor_init (struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, uint16_t depth)
 
M0_INTERNAL int m0_fd__tree_cursor_init_at (struct m0_fd__tree_cursor *cursor, const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node, uint32_t child_idx)
 
M0_INTERNAL struct m0_fd_tree_node ** m0_fd__tree_cursor_get (struct m0_fd__tree_cursor *cursor)
 
M0_INTERNAL int m0_fd__tree_cursor_next (struct m0_fd__tree_cursor *cursor)
 
M0_INTERNAL int m0_fd__perm_cache_build (struct m0_fd_tree *tree)
 
M0_INTERNAL void m0_fd__perm_cache_destroy (struct m0_fd_tree *tree)
 
M0_INTERNAL bool m0_fd__tree_invariant (const struct m0_fd_tree *tree)
 
M0_INTERNAL bool m0_fd__tree_node_invariant (const struct m0_fd_tree *tree, const struct m0_fd_tree_node *node)
 

Macro Definition Documentation

◆ __MOTR_FD_INT_H__

#define __MOTR_FD_INT_H__

Definition at line 25 of file fd_internal.h.

Function Documentation

◆ m0_fd__perm_cache_build()

M0_INTERNAL int m0_fd__perm_cache_build ( struct m0_fd_tree tree)

Definition at line 683 of file fd.c.

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

◆ m0_fd__perm_cache_destroy()

M0_INTERNAL void m0_fd__perm_cache_destroy ( struct m0_fd_tree tree)

Definition at line 818 of file fd.c.

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

◆ m0_fd__tile_init()

M0_INTERNAL int m0_fd__tile_init ( struct m0_fd_tile tile,
const struct m0_pdclust_attr la_attr,
uint64_t *  children_nr,
uint64_t  depth 
)

Calculates the tile parameters using pdclust layout.

Definition at line 204 of file fd.c.

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

◆ m0_fd__tile_populate()

M0_INTERNAL void m0_fd__tile_populate ( struct m0_fd_tile tile)

Populates the tile with appropriate values.

Definition at line 487 of file fd.c.

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

◆ m0_fd__tree_cursor_get()

M0_INTERNAL struct m0_fd_tree_node** m0_fd__tree_cursor_get ( struct m0_fd__tree_cursor cursor)

Definition at line 136 of file fd_tree.c.

Here is the caller graph for this function:

◆ m0_fd__tree_cursor_init()

M0_INTERNAL int m0_fd__tree_cursor_init ( struct m0_fd__tree_cursor cursor,
const struct m0_fd_tree tree,
uint16_t  depth 
)

Definition at line 62 of file fd_tree.c.

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

◆ m0_fd__tree_cursor_init_at()

M0_INTERNAL int m0_fd__tree_cursor_init_at ( struct m0_fd__tree_cursor cursor,
const struct m0_fd_tree tree,
const struct m0_fd_tree_node node,
uint32_t  child_idx 
)

Definition at line 97 of file fd_tree.c.

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

◆ m0_fd__tree_cursor_next()

M0_INTERNAL int m0_fd__tree_cursor_next ( struct m0_fd__tree_cursor cursor)

Definition at line 142 of file fd_tree.c.

Here is the caller graph for this function:

◆ m0_fd__tree_invariant()

M0_INTERNAL bool m0_fd__tree_invariant ( const struct m0_fd_tree tree)

Definition at line 202 of file fd_tree.c.

Here is the caller graph for this function:

◆ m0_fd__tree_level_populate()

M0_INTERNAL int m0_fd__tree_level_populate ( const struct m0_conf_pver pv,
struct m0_fd_tree tree,
uint32_t  level 
)

Allocates and initializes the nodes at a given level, in failure domains tree, using the input pool version.

Definition at line 630 of file fd.c.

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

◆ m0_fd__tree_node_fini()

M0_INTERNAL void m0_fd__tree_node_fini ( struct m0_fd_tree tree,
struct m0_fd_tree_node node 
)

Definition at line 53 of file fd_tree.c.

Here is the caller graph for this function:

◆ m0_fd__tree_node_init()

M0_INTERNAL int m0_fd__tree_node_init ( struct m0_fd_tree tree,
struct m0_fd_tree_node node,
uint16_t  child_nr,
const struct m0_fd__tree_cursor cursor 
)

Definition at line 31 of file fd_tree.c.

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

◆ m0_fd__tree_node_invariant()

M0_INTERNAL bool m0_fd__tree_node_invariant ( const struct m0_fd_tree tree,
const struct m0_fd_tree_node node 
)

Definition at line 208 of file fd_tree.c.

Here is the caller graph for this function:

◆ m0_fd__tree_root_create()

M0_INTERNAL int m0_fd__tree_root_create ( struct m0_fd_tree tree,
uint64_t  root_children 
)

Allocates and initializes the root node of the failure domains tree.

Definition at line 181 of file fd_tree.c.

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