23 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_OTHER 33 #include "fid/fid_xc.h" 48 uint8_t
id = fidt->
ft_id;
57 uint8_t
id = fidt->
ft_id;
166 return memcmp(fid0, fid1,
sizeof *fid0) == 0;
242 if (rc < 0 || rc >=
s_len)
253 .ft_name =
"miscellaneous" 271 return result == 0 ?
nr :
M0_ERR(result);
284 m0_fid_xc->xct_ops = &
xt_ops;
340 #undef M0_TRACE_SUBSYSTEM M0_INTERNAL int m0_uint128_cmp(const struct m0_uint128 *u0, const struct m0_uint128 *u1)
#define M0_ALLOC_ARR(arr, nr)
M0_INTERNAL uint64_t m0_fid_hash(const struct m0_fid *fid)
M0_INTERNAL void m0_fid_tset(struct m0_fid *fid, uint8_t tid, uint64_t container, uint64_t key)
M0_INTERNAL void m0_uuid_generate(struct m0_uint128 *u)
struct m0_container container
#define M0_FID_TCONTAINER(type, container)
static const struct m0_fid_type * fid_types[256]
M0_INTERNAL uint8_t m0_fid_tget(const struct m0_fid *fid)
static struct m0_be_emap_cursor it
M0_INTERNAL const struct m0_fid_type * m0_fid_type_get(uint8_t id)
M0_INTERNAL void m0_fid_fini(void)
M0_INTERNAL int m0_fid_cmp(const struct m0_fid *fid0, const struct m0_fid *fid1)
M0_INTERNAL bool m0_fid_is_set(const struct m0_fid *fid)
static const struct m0_uint128 zero
int(* xto_read)(const struct m0_xcode_cursor *it, struct m0_xcode_obj *obj, const char *str)
M0_INTERNAL void m0_fid_set(struct m0_fid *fid, uint64_t container, uint64_t key)
return M0_ERR(-EOPNOTSUPP)
M0_INTERNAL void m0_fid_type_register(const struct m0_fid_type *fidt)
M0_INTERNAL void m0_fid_tgenerate(struct m0_fid *fid, const uint8_t tid)
M0_INTERNAL const struct m0_fid_type * m0_fid_type_gethi(uint64_t id)
static const struct m0_xcode_type_ops xt_ops
M0_INTERNAL const struct m0_fid_type * m0_fid_type_getfid(const struct m0_fid *fid)
M0_INTERNAL int m0_fid_print(char *s, size_t s_len, const struct m0_fid *fid)
M0_INTERNAL void m0_fid_type_unregister(const struct m0_fid_type *fidt)
M0_INTERNAL bool m0_fid_arr_eq(const struct m0_fid_arr *a, const struct m0_fid_arr *b)
M0_INTERNAL int m0_fid_sscanf(const char *s, struct m0_fid *fid)
M0_INTERNAL const struct m0_fid_type * m0_fid_type_getname(const char *name)
#define M0_CIRCULAR_SHIFT_LEFT(val, bits)
M0_INTERNAL bool m0_fid_eq(const struct m0_fid *fid0, const struct m0_fid *fid1)
#define m0_forall(var, nr,...)
static const struct m0_fid_type misc
static int fid_sscanf(const char *s, struct m0_fid *fid, int *nob)
M0_INTERNAL void m0_fid_tchange(struct m0_fid *fid, uint8_t tid)
M0_INTERNAL int m0_fid_arr_copy(struct m0_fid_arr *to, const struct m0_fid_arr *from)
#define IS_IN_ARRAY(idx, array)
static struct m0_fop_type * ft[]
static int xt_read(const struct m0_xcode_cursor *it, struct m0_xcode_obj *obj, const char *str)
M0_INTERNAL bool m0_fid_is_valid(const struct m0_fid *fid)
static struct m0_addb2_source * s
M0_INTERNAL bool m0_fid_arr_all_unique(const struct m0_fid_arr *a)
M0_INTERNAL uint64_t m0_hash(uint64_t x)
M0_INTERNAL void m0_fid_tassume(struct m0_fid *fid, const struct m0_fid_type *ft)
M0_INTERNAL int m0_fid_init(void)