* [Xenomai-help] Down interruptible
@ 2007-09-03 4:26 Iwan Budi Kusnanto
2007-09-03 6:12 ` Jan Kiszka
2007-09-03 9:08 ` Philippe Gerum
0 siblings, 2 replies; 3+ messages in thread
From: Iwan Budi Kusnanto @ 2007-09-03 4:26 UTC (permalink / raw)
To: xenomai
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.
In what situation we must use posix skin?
In what situation we must use native skin?
thx
--
Iwan Budi Kusnanto
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Down interruptible
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
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2007-09-03 6:12 UTC (permalink / raw)
To: Iwan Budi Kusnanto; +Cc: xenomai
[-- Attachment #1: Type: text/plain, Size: 822 bytes --]
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() does have the desired property. If you observed anything
different in practice, it would be a bug and we would be happy to hear
more details (used versions, testcase code, etc.).
Just note that signal delivery breaks the determinism of the target
application.
>
> In what situation we must use posix skin?
> In what situation we must use native skin?
There are no technical reasons to pick any of them, it's purely a design
question of your application (/me being in hurry and can't go into
details ATM).
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Down interruptible
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
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2007-09-03 9:08 UTC (permalink / raw)
To: Iwan Budi Kusnanto; +Cc: xenomai
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-03 9:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.