Commit a409c18d authored by Philippe Gerum's avatar Philippe Gerum
Browse files

copperplate/heapobj-pshared: add helper to return the total heap size

parent dc63a21a
......@@ -304,6 +304,8 @@ size_t heapobj_validate(struct heapobj *hobj,
size_t heapobj_inquire(struct heapobj *hobj);
size_t heapobj_get_size(struct heapobj *hobj);
int heapobj_bind_session(const char *session);
void heapobj_unbind_session(void);
......@@ -1092,6 +1092,12 @@ size_t heapobj_inquire(struct heapobj *hobj)
return heap->ubytes;
size_t heapobj_get_size(struct heapobj *hobj)
struct shared_heap *heap = __mptr(hobj->pool_ref);
return heap->total;
void *xnmalloc(size_t size)
return alloc_block(&main_heap.heap, size);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment