78 b_magic, 0xbeda551edcaca0ff, 0x7777777777777777);
158 bar_tlist_init(&
bhead);
163 bar_tlist_add(&
bhead, b);
260 bar_tlist_move(&
bhead, b);
265 for (
i = 0, b = bar_tlist_head(&
bhead); b !=
NULL;
266 b = bar_tlist_next(&
bhead, b), ++
i) {
293 bar_tlist_fini(&
bhead);
338 { .ub_name =
"insert",
342 { .ub_name =
"delete",
static struct foo t[UB_ITER]
static struct m0_tl head0[N]
void * m0_tlist_head(const struct m0_tl_descr *d, const struct m0_tl *list)
struct m0_tlink f_linkage1
M0_INTERNAL void m0_tlist_add_before(const struct m0_tl_descr *d, void *obj, void *new)
M0_INTERNAL void m0_tlist_add(const struct m0_tl_descr *d, struct m0_tl *list, void *obj)
M0_INTERNAL void m0_tlist_init(const struct m0_tl_descr *d, struct m0_tl *list)
M0_INTERNAL void m0_tlist_fini(const struct m0_tl_descr *d, struct m0_tl *list)
static struct m0_tl head2[N]
static const struct m0_tl_descr fl1
static void ub_insert(int i)
M0_INTERNAL bool m0_tlist_is_empty(const struct m0_tl_descr *d, const struct m0_tl *list)
M0_INTERNAL void m0_tlist_del(const struct m0_tl_descr *d, void *obj)
static int head(struct m0_sm *mach)
M0_TL_DEFINE(bar, static, struct bar)
static const struct m0_tl_descr fl0
static void ub_fini(void)
M0_INTERNAL void * m0_tlist_prev(const struct m0_tl_descr *d, const struct m0_tl *list, const void *obj)
#define M0_TL_DESCR(name, ambient_type, link_field, link_magic_field, link_magic, head_magic)
M0_INTERNAL void m0_tlink_fini(const struct m0_tl_descr *d, void *obj)
void * m0_tlist_next(const struct m0_tl_descr *d, const struct m0_tl *list, const void *obj)
M0_INTERNAL void m0_tlist_move_tail(const struct m0_tl_descr *d, struct m0_tl *list, void *obj)
M0_INTERNAL size_t m0_tlist_length(const struct m0_tl_descr *d, const struct m0_tl *list)
static const struct m0_tl_descr fl2
struct m0_tlink f_linkage2
M0_INTERNAL void m0_tlink_init(const struct m0_tl_descr *d, void *obj)
static void ub_delete(int i)
#define m0_tlist_forall(descr, var, head,...)
M0_INTERNAL bool m0_tlink_is_in(const struct m0_tl_descr *d, const void *obj)
struct m0_tlink b_linkage
M0_TL_DESCR_DEFINE(bar, "bar-s", static, struct bar, b_linkage, b_magic, 0xbeda551edcaca0ff, 0x7777777777777777)
static struct m0_tl bhead
static int ub_init(const char *opts M0_UNUSED)
struct m0_ub_set m0_tlist_ub
#define m0_tlist_for(descr, head, obj)
struct m0_tlink f_linkage0
static struct m0_tl head1[N]
M0_INTERNAL void m0_tlist_move(const struct m0_tl_descr *d, struct m0_tl *list, void *obj)
#define m0_tl_for(name, head, obj)
M0_INTERNAL bool m0_tlist_contains(const struct m0_tl_descr *d, const struct m0_tl *list, const void *obj)
M0_INTERNAL void m0_tlist_add_tail(const struct m0_tl_descr *d, struct m0_tl *list, void *obj)
#define m0_tl_forall(name, var, head,...)