All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Help with heap managment
@ 2006-04-12 16:28 Randy Smith
  2006-04-12 19:55 ` Randy Smith
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Smith @ 2006-04-12 16:28 UTC (permalink / raw)
  To: xenomai

Hi everyone,

Using the native skin, I have two heaps that I create in a kernel module 
using rt_heap_create.  They are of type H_SHARED.  I can see these in 
the /proc file system.  When I cat these files I get...

bash-2.05b# cat 
/proc/xenomai/registry/native/heaps/header                                                                                      

type=shared:size=8192:used=8192
bash-2.05b# cat /proc/xenomai/registry/native/heaps/uframe
type=shared:size=538624:used=536576

so I know they exist.

Now, in my user space code, I am trying to use these shared memory 
segments by first calling rt_heap_bind to get the uniform descriptor to 
use in a subsequent rt_heap_alloc call, but the bind fails with an 
errorcode of -2 which doesn't map to the return codes listed in the 
documentation.

Any clues?

Am I using the correct calling sequence from user space?

-Randy Smith
Software Engineer
ImageMap, Inc.



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

* Re: [Xenomai-help] Help with heap managment
  2006-04-12 16:28 [Xenomai-help] Help with heap managment Randy Smith
@ 2006-04-12 19:55 ` Randy Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Smith @ 2006-04-12 19:55 UTC (permalink / raw)
  Cc: xenomai

Randy learns to make device nodes for rtheap and rtpXX.  Had to use 
strace -f to see that it was failing to open /dev/rtheap.  After these 
are in place problem goes away.

Randy Smith wrote:
> Hi everyone,
>
> Using the native skin, I have two heaps that I create in a kernel 
> module using rt_heap_create.  They are of type H_SHARED.  I can see 
> these in the /proc file system.  When I cat these files I get...
>
> bash-2.05b# cat 
> /proc/xenomai/registry/native/heaps/header                                                                                      
>
> type=shared:size=8192:used=8192
> bash-2.05b# cat /proc/xenomai/registry/native/heaps/uframe
> type=shared:size=538624:used=536576
>
> so I know they exist.
>
> Now, in my user space code, I am trying to use these shared memory 
> segments by first calling rt_heap_bind to get the uniform descriptor 
> to use in a subsequent rt_heap_alloc call, but the bind fails with an 
> errorcode of -2 which doesn't map to the return codes listed in the 
> documentation.
>
> Any clues?
>
> Am I using the correct calling sequence from user space?
>
> -Randy Smith
> Software Engineer
> ImageMap, Inc.
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>


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

end of thread, other threads:[~2006-04-12 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-12 16:28 [Xenomai-help] Help with heap managment Randy Smith
2006-04-12 19:55 ` Randy Smith

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.