All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: GUARDIOLA-FALCO Sebastien 204282 <Sebastien.GUARDIOLA-FALCO@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai task (beginner)
Date: Tue, 25 Jul 2006 19:23:56 +0200	[thread overview]
Message-ID: <17606.21420.165431.429261@domain.hid> (raw)
In-Reply-To: <1299EF3181B10F479D85C3280132852422DABC@THEZE.intra.cea.fr>

GUARDIOLA-FALCO Sebastien 204282 wrote:
 > Hello,
 > 
 > I'm waiting for Xenomai to be included in the ElinOS Linux package, so I can't try it before next week. 
 > My question is simple : how to port a linux program to Xenomai so this program is recognized as a Xenomai task? (and has low latencies?). Is it done when launching the program? like "prio 255 myprogram" in LynxOS? or are there lines of code to include?
 > My linux task doesn't have any system call, except mmap(). Next I'm using the pointer I get from mmap() and that's it.
 > 

If you are talking about latencies, then your task has to suspend,
waiting for some event using some other system call than mmap. I assume
here that you are using the POSIX interface for that purpose. 

To have a Linux program "recognized" by Xenomai, you have to compile it
with special compilation flags, provided by the xeno-config script. The
advantage of this approach is that the regular Linux services remain
accessible by prefixing their names with the __real_ prefix. For example
Linux regular mmap remain accessible but is called __real_mmap.

If your program is called hello.c, you would compile it for Xenomai
POSIX skin by calling:

gcc -o hello.o  -c hello.c `xeno-config --posix-cflags`

gcc -o hello hello.o `xeno-config --posix-ldflags`

-- 


					    Gilles Chanteperdrix.


  reply	other threads:[~2006-07-25 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-24 13:16 [Xenomai-help] dma in rtdm Harkema, G.A.
2006-07-25  6:18 ` Jan Kiszka
2006-07-25 16:06   ` [Xenomai-help] Xenomai task (beginner) GUARDIOLA-FALCO Sebastien 204282
2006-07-25 17:23     ` Gilles Chanteperdrix [this message]
2006-07-26  6:14       ` GUARDIOLA-FALCO Sebastien 204282
2006-07-26 12:05         ` Gilles Chanteperdrix
2006-07-26 13:48           ` GUARDIOLA-FALCO Sebastien 204282
2006-07-27 12:07             ` Gilles Chanteperdrix
2006-07-25 17:41     ` Jan Kiszka
2006-07-26 14:39       ` Ulrich Schwab
2006-07-26 14:58         ` GUARDIOLA-FALCO Sebastien 204282
2006-07-26 15:02         ` 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=17606.21420.165431.429261@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Sebastien.GUARDIOLA-FALCO@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.