#include "conf/obj.h"
#include "conf/obj_ops.h"
#include "conf/onwire.h"
#include "conf/dir.h"
#include "fid/fid.h"
#include "lib/memory.h"
#include "lib/errno.h"
#include "lib/misc.h"
Go to the source code of this file.
|
#define | __MOTR_CONF_OBJS_COMMON_H__ |
|
#define | X_CONF(_, NAME, ft_id) M0_CONF__ ## NAME ## _FT_ID = ft_id, |
|
#define | M0_CONF__BOB_DEFINE(type, magic, check) |
|
#define | M0_CONF__INVARIANT_DEFINE(name, type) |
|
#define | M0_CONF__CTOR_DEFINE(name, type, ops) |
|
#define | CONF_DIR_ENTRIES(relfid, entry_type, entries) ((struct conf_dir_entries){ (relfid), (entry_type), (entries) }) |
|
|
M0_INTERNAL int | dir_create_and_populate (struct m0_conf_dir **result, const struct conf_dir_entries *de, struct m0_conf_obj *dir_parent) |
|
M0_INTERNAL int | conf_dirs_encode (const struct conf_dir_encoding_pair *how, size_t how_nr) |
|
M0_INTERNAL int | conf_dirs_lookup (struct m0_conf_obj **out, const struct m0_fid *name, const struct conf_dir_relation *rels, size_t nr_rels) |
|
M0_INTERNAL bool | arrays_eq (const char **cached, const struct m0_bufs *flat) |
|
M0_INTERNAL int | arrfid_from_dir (struct m0_fid_arr *dest, const struct m0_conf_dir *dir) |
|
M0_INTERNAL void | arrfid_free (struct m0_fid_arr *arr) |
|
M0_INTERNAL void | confx_encode (struct m0_confx_obj *dest, const struct m0_conf_obj *src) |
|
M0_INTERNAL int | u32arr_decode (const struct arr_u32 *src, uint32_t **dest) |
|
M0_INTERNAL int | u32arr_encode (struct arr_u32 *dest, const uint32_t *src, uint32_t src_nr) |
|
M0_INTERNAL bool | u32arr_cmp (const struct arr_u32 *a1, const uint32_t *a2, uint32_t a2_nr) |
|
M0_INTERNAL void | u32arr_free (struct arr_u32 *arr) |
|
M0_INTERNAL int | conf_pvers_decode (struct m0_conf_pver ***dest, const struct m0_fid_arr *src, struct m0_conf_cache *cache) |
|
M0_INTERNAL int | conf_pvers_encode (struct m0_fid_arr *dest, const struct m0_conf_pver **src) |
|
M0_INTERNAL int | conf_obj_lookup_denied (const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out) |
|
M0_INTERNAL const struct m0_fid ** | conf_obj_downlinks_none (const struct m0_conf_obj *obj) |
|
◆ __MOTR_CONF_OBJS_COMMON_H__
#define __MOTR_CONF_OBJS_COMMON_H__ |
◆ CONF_DIR_ENTRIES
#define CONF_DIR_ENTRIES |
( |
|
relfid, |
|
|
|
entry_type, |
|
|
|
entries |
|
) |
| ((struct conf_dir_entries){ (relfid), (entry_type), (entries) }) |
◆ M0_CONF__BOB_DEFINE
Value: type ## _cast_field.co_con_magic), \
}; \
M0_BOB_DEFINE(
static, &
type ## _bob,
type)
static uint64_t magic(const struct m0_tl_descr *d, const void *obj)
#define M0_MAGIX_OFFSET(type, field)
void check(struct workload *w)
Definition at line 48 of file common.h.
◆ M0_CONF__CTOR_DEFINE
Value:{ \
\
ret = &
x->type ## _cast_field; \
return ret; \
} \
struct __ ##
type ## _semicolon_catcher
#define M0_ALLOC_PTR(ptr)
Definition at line 66 of file common.h.
◆ M0_CONF__INVARIANT_DEFINE
#define M0_CONF__INVARIANT_DEFINE |
( |
|
name, |
|
|
|
type |
|
) |
| |
Value:{ \
} \
struct __ ##
type ## _semicolon_catcher
#define container_of(ptr, type, member)
Definition at line 58 of file common.h.
◆ X_CONF
#define X_CONF |
( |
|
_, |
|
|
|
NAME, |
|
|
|
ft_id |
|
) |
| M0_CONF__ ## NAME ## _FT_ID = ft_id, |
◆ anonymous enum
Enumerator |
---|
M0_CONF_OBJ_TYPES | |
Definition at line 40 of file common.h.
◆ arrays_eq()
M0_INTERNAL bool arrays_eq |
( |
const char ** |
cached, |
|
|
const struct m0_bufs * |
flat |
|
) |
| |
◆ arrfid_free()
M0_INTERNAL void arrfid_free |
( |
struct m0_fid_arr * |
arr | ) |
|
◆ arrfid_from_dir()
◆ conf_dirs_encode()
◆ conf_dirs_lookup()
◆ conf_obj_downlinks_none()
M0_INTERNAL const struct m0_fid** conf_obj_downlinks_none |
( |
const struct m0_conf_obj * |
obj | ) |
|
◆ conf_obj_lookup_denied()
◆ conf_pvers_decode()
◆ conf_pvers_encode()
◆ confx_encode()
◆ dir_create_and_populate()
◆ u32arr_cmp()
M0_INTERNAL bool u32arr_cmp |
( |
const struct arr_u32 * |
a1, |
|
|
const uint32_t * |
a2, |
|
|
uint32_t |
a2_nr |
|
) |
| |
◆ u32arr_decode()
M0_INTERNAL int u32arr_decode |
( |
const struct arr_u32 * |
src, |
|
|
uint32_t ** |
dest |
|
) |
| |
◆ u32arr_encode()
M0_INTERNAL int u32arr_encode |
( |
struct arr_u32 * |
dest, |
|
|
const uint32_t * |
src, |
|
|
uint32_t |
src_nr |
|
) |
| |
◆ u32arr_free()
M0_INTERNAL void u32arr_free |
( |
struct arr_u32 * |
arr | ) |
|