All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Peter Warner <xenomai.start@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai System Call
Date: Sun, 20 Mar 2011 14:45:54 +0100	[thread overview]
Message-ID: <4D860512.4040404@domain.hid> (raw)
In-Reply-To: <AANLkTim6tgodUUDYw-zpyadLCj_f=PKKd_CShKTkMuUc@domain.hid>

Peter Warner wrote:
> Hi All,
> 
> My System Detail:
> Operating System: Ubuntu 10.04
> Xenomai: 2.5.5.2
> 
> I Just want to implement some system calls for xenomai. Can you Please
> Suggest me How It can be done.

What you want may be creating a new skin, or adding a syscall to an
existing skin. Either way, it is relatively simple, you just have to
look at the way an existing skin is done.

For instance, for the native skin service rt_task_create, the service is
implemented in src/skins/native/task.c,  emits a syscall using the
syscall number __native_task_create defined in include/native/task.h,
and the syscall is caught in kernel-space in
ksrc/skins/native/syscall.c, where its implementation uses the
kernel-space service rt_task_create defined in ksrc/skins/native/task.c.
This last step is not mandatory if you do not intend your new service to
be also available to kernel modules.

-- 
                                                                Gilles.


  reply	other threads:[~2011-03-20 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19 16:30 [Xenomai-help] Xenomai System Call Peter Warner
2011-03-20 13:45 ` Gilles Chanteperdrix [this message]
     [not found]   ` <AANLkTi=gGfab6-uSfTtc93G9jpZGhaRiejB3vEvS2Wf+@mail.gmail.com>
2011-03-21 16:38     ` Gilles Chanteperdrix

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=4D860512.4040404@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai.start@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.