25 #ifndef __MOTR_LIB_COOKIE_H__ 26 #define __MOTR_LIB_COOKIE_H__ 121 #define m0_cookie_of(cookie, type, field) \ 124 const struct m0_cookie *__cookie = (cookie); \ 125 m0_cookie_dereference(__cookie, &__gen) != 0 ? NULL : \ 126 container_of(__gen, type, field); \ M0_INTERNAL bool m0_addr_is_sane(const uint64_t *addr)
struct m0_ha_cookie_xc M0_XCA_DOMAIN(rpc)
M0_INTERNAL bool m0_cookie_is_null(const struct m0_cookie *cookie)
M0_INTERNAL bool m0_addr_is_sane_and_aligned(const uint64_t *addr)
M0_INTERNAL bool m0_cookie_is_eq(const struct m0_cookie *cookie1, const struct m0_cookie *cookie2)
M0_INTERNAL void m0_cookie_init(struct m0_cookie *cookie, const uint64_t *obj)
M0_EXTERN const struct m0_cookie M0_COOKIE_NULL
M0_INTERNAL void m0_cookie_new(uint64_t *gen)
M0_INTERNAL void m0_cookie_global_fini(void)
M0_INTERNAL int m0_cookie_global_init(void)
static struct m0_be_ut_backend be
M0_INTERNAL int m0_cookie_dereference(const struct m0_cookie *cookie, uint64_t **addr)