Commit 6c7838c8 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

lib/heap: move stats accessors out of line



Refrain from inlining core services, so that interposing on them via
dynamic linking tricks is made easier.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 03baa08b
......@@ -134,23 +134,11 @@ int evl_free_block(struct evl_heap *heap,
ssize_t evl_check_block(struct evl_heap *heap,
void *block);
static inline
size_t evl_heap_raw_size(const struct evl_heap *heap)
{
return heap->raw_size;
}
size_t evl_heap_raw_size(const struct evl_heap *heap);
static inline
size_t evl_heap_size(const struct evl_heap *heap)
{
return heap->usable_size;
}
size_t evl_heap_size(const struct evl_heap *heap);
static inline
size_t evl_heap_used(const struct evl_heap *heap)
{
return heap->used_size;
}
size_t evl_heap_used(const struct evl_heap *heap);
#ifdef __cplusplus
}
......
......@@ -1290,6 +1290,21 @@ int evl_extend_heap(struct evl_heap *heap, void *mem, size_t size)
return 0;
}
size_t evl_heap_raw_size(const struct evl_heap *heap)
{
return heap->raw_size;
}
size_t evl_heap_size(const struct evl_heap *heap)
{
return heap->usable_size;
}
size_t evl_heap_used(const struct evl_heap *heap)
{
return heap->used_size;
}
void evl_destroy_heap(struct evl_heap *heap)
{
evl_close_mutex(&heap->lock);
......
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