From: Jan Kiszka <jan.kiszka@domain.hid>
To: manoj kumar <manojkpanghal@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] heap allocation in xenomai
Date: Fri, 16 Feb 2007 11:29:04 +0100 [thread overview]
Message-ID: <45D58770.6030201@domain.hid> (raw)
In-Reply-To: <528bc2040702160148j5c63209fi40face4810613bfd@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 941 bytes --]
manoj kumar wrote:
> Hi,
>
> Could anybody tell me about heap allocation in xenomai by API
> rt_heap_create().
>
> Why heap creation is required? Please tell the uses in detail?
The native skin's heaps provide means to reserve separate memory pools
and to perform deterministic allocation on it (as far as the heap usage
patterns are known).
For further derails, please read the API documentation and consult e.g.
the demo code: ksrc/skins/native/snippets/local_heap.c. Or ask a bit
more concrete questions.
>
> Can kmalloc & free be used in any RT program at kernel space? If yes, Are
> there any limitation on that? if Yes, then which are those.
You can, but only during module init/cleanup, *NOT* while running inside
an RT task. That's because these Linux services may have been preempted
by Xenomai at any point while Linux was using it, and a re-entrance from
a Xenomai task would corrupt them.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-02-16 10:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-16 9:48 [Xenomai-help] heap allocation in xenomai manoj kumar
2007-02-16 10:29 ` Jan Kiszka [this message]
[not found] ` <528bc2040702160328o5d35d085s3cbe0953ac29163e@domain.hid>
2007-02-16 18:36 ` Jan Kiszka
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=45D58770.6030201@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=manojkpanghal@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.