All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] V3 heap usage
@ 2015-05-05 15:05 Stéphane ANCELOT
  2015-05-06  9:27 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane ANCELOT @ 2015-05-05 15:05 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,

Since rtheap compat alchemy seems broken, I wanted to try native heap 
dynamic allocation.

I found xnheap_ functions.

However, in this case, I have to manage heap byte alignment.

These are the right functions to use ? or I missed something ???

Regards,
S.Ancelot





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

* Re: [Xenomai] V3 heap usage
  2015-05-05 15:05 [Xenomai] V3 heap usage Stéphane ANCELOT
@ 2015-05-06  9:27 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2015-05-06  9:27 UTC (permalink / raw)
  To: Stéphane ANCELOT, xenomai@xenomai.org

On 05/05/2015 05:05 PM, Stéphane ANCELOT wrote:
> Hi,
> 
> Since rtheap compat alchemy seems broken, I wanted to try native heap
> dynamic allocation.
> 

Your test code is broken, not the API so far. Besides, I can only repeat
myself: there is no rtheap compat wrappers in the transition kit, simply
because there is no need for it:

http://www.xenomai.org/pipermail/xenomai/2015-April/034091.html
http://xenomai.org/migrating-from-xenomai-2-x-to-3-x/#Heaps

> I found xnheap_ functions.
> 

These are kernel-space inner services for implementing the dual kernel
system. You most likely don't want to use them.

> However, in this case, I have to manage heap byte alignment.
>

No, that would make no sense, you must have misread the internal docs or
code.

> These are the right functions to use ? or I missed something ???
> 

You seem to be missing the documentation:

http://www.xenomai.org/documentation/xenomai-3/html/xeno3prm/group__alchemy__heap.html

-- 
Philippe.


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

end of thread, other threads:[~2015-05-06  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 15:05 [Xenomai] V3 heap usage Stéphane ANCELOT
2015-05-06  9:27 ` 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.