From: Randy Smith <rsmith@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Help with heap managment
Date: Wed, 12 Apr 2006 15:55:22 -0400 [thread overview]
Message-ID: <443D5B2A.9080507@domain.hid> (raw)
In-Reply-To: <443D2A92.1000205@domain.hid>
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
>
prev parent reply other threads:[~2006-04-12 19:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 16:28 [Xenomai-help] Help with heap managment Randy Smith
2006-04-12 19:55 ` Randy Smith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=443D5B2A.9080507@domain.hid \
--to=rsmith@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.