All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] heap: bad usage or design problem using named heaps ?
@ 2015-03-26  9:48 Stéphane ANCELOT
  2015-03-26 10:45 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane ANCELOT @ 2015-03-26  9:48 UTC (permalink / raw)
  To: Xenomai

Hi,

I faced the following problem with xeno 2.5.x , but may exist on other 
releases .

1/ I create a rt_heap
2/ in this rh_heap I alloc many named "data area"
I always give the global rt_heap ptr. no problem, areas are allocated.

3/problem arises when unallocating/unbinding
using rt_heap_free/rt_heap_unbind.
only the last segment created is freed. Because the global heap ptr size 
contains only size of the last allocation.


============================
to solve the problem, I had to use a distinct rt_heap for each named 
area, in this case.

At first, I may have misunderstood the way was working rt_heaps ?
I was thinking I could manage only a heap with many named modules inside 
it...

Regards
S.Ancelot








^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-26 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-26  9:48 [Xenomai] heap: bad usage or design problem using named heaps ? Stéphane ANCELOT
2015-03-26 10:45 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.