All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Iwan Budi Kusnanto <iwanbk@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Down interruptible
Date: Mon, 03 Sep 2007 11:08:47 +0200	[thread overview]
Message-ID: <1188810527.6037.10.camel@domain.hid> (raw)
In-Reply-To: <41f748550709022126g1bf2bf0bvb3fbf74373932b00@domain.hid>

On Mon, 2007-09-03 at 11:26 +0700, Iwan Budi Kusnanto wrote:
> Hello all
> why rt_sem_p does not have behaviour like down_interruptible (that
> receive a signal while being blocked on a semaphore to give up the
> "down"/"p" operation).Is that a bad design?
> sem_wait (posix skin)have behaviour like that.

rt_sem_p automatically switches the pending thread to secondary mode
upon signal receipt, so that it can process this signal from a regular
Linux context, then -EINTR is returned to the caller.

> 
> In what situation we must use posix skin?
> In what situation we must use native skin?
> 

The native skin resembles traditional RTOS interfaces; if you know about
VxWorks, VRTX, pSOS and the like, it should sound familiar.
OTOH, choosing the POSIX interface has the advantage of keeping all
options open to move away from Xenomai, since it aims at conforming to
the opengroup's specs.

> thx
> 
> 
-- 
Philippe.




      parent reply	other threads:[~2007-09-03  9:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-03  4:26 [Xenomai-help] Down interruptible Iwan Budi Kusnanto
2007-09-03  6:12 ` Jan Kiszka
2007-09-03  9:08 ` Philippe Gerum [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=1188810527.6037.10.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=iwanbk@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.