All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin ZORES <benjamin.zores@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] RTAI Skin FIFO handler running as non-RT task
Date: Tue, 06 May 2008 10:18:03 +0200	[thread overview]
Message-ID: <4820143B.6070403@domain.hid> (raw)

Hi,

I've been playing with the RTAI skin as I wanted a FIFO implementation
close to the one that used to exist in RTLinux.

I've setup an input handler to the FIFO, and this handler is trying to 
acquire some
Xenomai RT mutex that was previously (successfully) created by an RT task.

Acquisition of the handler always fails with -EPERM.
So I've checked the handler status through rtdm_in_rt_context () function
and it seems that the handler is always called from a non-RT context, which
obviously seems to be the reason of the permission denied result.

Is there a reason for the handler not being RT ?
Or any way to make it RT ?

Also, I'm using Xenomai native skin everywhere in my application, except
from FIFO handling which requires me to use RTAI skin for this input 
handler.
Native skin (through pipes) do not seem to provide capabilities to set 
an handler.
Is there a good reason for that ? And is there another way to simulate 
such a handler
than creating a dedicated task that would be wakeup each time something 
is written to the FIFO ?

Thanks for any help on this,

Regards,

Ben



                 reply	other threads:[~2008-05-06  8:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4820143B.6070403@domain.hid \
    --to=benjamin.zores@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.