5 #include <xtypes/xlock.h>
6 #include <xtypes/xheap.h>
7 #include <xtypes/domain.h>
9 #define X_ALLOC ((uint32_t) (1 << 0))
11 struct xseg_object_header {
12 XPTR_TYPE(struct xseg_object_handler) obj_h;
25 XPTR_TYPE(void) container;
32 void *xobj_get_obj(struct xobject_h * obj_h, uint32_t flags);
33 void xobj_put_obj(struct xobject_h * obj_h, void *ptr);
34 int xobj_alloc_obj(struct xobject_h * obj_h, uint64_t nr);
35 int xobj_handler_init(struct xobject_h *obj_h, void *container,
36 uint32_t magic, uint64_t size, struct xheap *heap);