From: Cedric Herreman <glocker50@domain.hid>
To: xenomai-help <xenomai@xenomai.org>
Subject: [Xenomai-help] binding to memory heap from user space
Date: Mon, 20 Feb 2006 02:55:19 -0800 (PST) [thread overview]
Message-ID: <20060220105519.81962.qmail@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
Hello,
I have created a memory heap in the init_module routine of a kernel module :
rt_heap_create(&heap_data,"RT_LOG_HEAP",sizeof(ttv_log_data),H_FIFO|H_SHARED);
and
rt_heap_alloc(&heap_data,0,TM_NONBLOCK,&loc_ptr);
Both calls return succesful.
When i try to bind to this memory in an user space application :
rt_heap_bind(&rt_heap,"RT_LOG_HEAP",TM_NONBLOCK);
the call returns with error -2, this error does not seem to be documented (i test on all the constants defined in the html API docs, xenomai v2.0).
Can anyone give me a hint on what's wrong here ?
Cedric.
---------------------------------
Yahoo! Mail
Use Photomail to share photos without annoying attachments.
[-- Attachment #2: Type: text/html, Size: 838 bytes --]
next reply other threads:[~2006-02-20 10:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 10:55 Cedric Herreman [this message]
2006-02-20 13:00 ` [Xenomai-help] binding to memory heap from user space Gilles Chanteperdrix
2006-02-20 14:56 ` Cedric Herreman
2006-02-20 19:21 ` Philippe Gerum
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=20060220105519.81962.qmail@domain.hid \
--to=glocker50@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.