All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] rt_heap in userspace, heapsize
@ 2006-01-17 13:57 Stefan Kisdaroczi
  2006-01-17 21:37 ` [Xenomai-core] rt_heap in userspace, heapsize [patch] Stefan Kisdaroczi
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kisdaroczi @ 2006-01-17 13:57 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

Hi,

I made a small test with rt_heap_ in userspace,
i think I understood the actual limitations of the userspace support.
I used 10000 as heapsize. Xenomai 2.1-RC2/x86.

This should alloc the entire heap, according to the API documentation:
rt_heap_create( ..., ..., 10000, ... )
rt_heap_alloc( ..., 10000, ..., .... ) -> This call fails, but it should work

Using heapsize 0 it works:
rt_heap_create( ..., ..., 10000, ... )
rt_heap_alloc( ..., 0, ..., .... )

rt_heap_inquire shows a heapsize of 12228 (IIRC).
So, this would probably work (untested):
rt_heap_create( ..., ..., 10000, ... )
rt_heap_alloc( ..., 12228, ..., .... )

The 2228 bytes difference seems to be the space needed for the heap control structures.

I think the following should be fixed:
1) rt_create_alloc should alter the heapsize the same as rt_heap_create does
2) rt_heap_inquire should return the _real_ heapsize

thx
kisda



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 187 bytes --]

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

end of thread, other threads:[~2006-01-31 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 13:57 [Xenomai-core] rt_heap in userspace, heapsize Stefan Kisdaroczi
2006-01-17 21:37 ` [Xenomai-core] rt_heap in userspace, heapsize [patch] Stefan Kisdaroczi
2006-01-31 18:17   ` 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.