From: Jan Kiszka <jan.kiszka@domain.hid>
To: rob@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Non-Real-Time Asynchronous Notification
Date: Fri, 21 Mar 2008 21:09:45 +0100 [thread overview]
Message-ID: <47E41609.2090107@domain.hid> (raw)
In-Reply-To: <001001c88b63$df59b300$9601a8c0@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1762 bytes --]
Robert McCullough wrote:
> Hi Jan,
>
> --> -----Original Message-----
> --> From: jan.kiszka@domain.hid [mailto:jan.kiszka@domain.hid]
> --> Sent: Thursday, March 20, 2008 3:29 PM
> --> To: rob@domain.hid
> --> Cc: xenomai@xenomai.org
> --> Subject: Re: [Xenomai-help] Non-Real-Time Asynchronous Notification
> -->
> --> Robert McCullough wrote:
> --> > Hi,
> --> >
> --> > How do I signal an asynchronous notification from a RTDM real-time
> --> task to a
> --> > non-real-time user-space Linux thread?
> --> > Do I use Non-Real-Time Signaling Services (rtdm_nrtsig_init,..)?
> --> > If so, how?
> --> >
> --> > Here is the current code that I am trying to port to RTDM.
> --> >
> --> > Current driver code to signal non-real-time Linux thread:
> --> >
> --> > // If event
> --> > if(event){
> --> > // and signal asynchronous readers
> --> > if (kmdpr_device->async_queue)
> --> > kill_fasync(&kmdpr_device->async_queue,
> SIGIO,
> --> > POLL_IN);
> --> > }
> -->
> --> Just push this code in the rtdm_nrtsig handler and trigger the handler
> --> execution from RT context.
> -->
> --> Jan
>
> [Robert McCullough]
> Ok, I understand that but how do I specify the file operation fasync in my
> rtdm_device? How do I replace or update the code marked TODO?
In fact, there is no fasync support available with RTDM, specifically as
using signals under real-time constraints is a bad idea (not only
because Xenomai has no hard-RT signal support).
But before suggesting any alternative pattern: What does your
application actually require to work? How does asynchronous
driver/application interaction currently look like?
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
next prev parent reply other threads:[~2008-03-21 20:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 22:05 [Xenomai-help] Non-Real-Time Asynchronous Notification Robert McCullough
2008-03-20 19:29 ` Jan Kiszka
2008-03-21 14:57 ` Robert McCullough
2008-03-21 20:09 ` Jan Kiszka [this message]
2008-03-31 15:22 ` Robert McCullough
2008-04-01 23:07 ` Jan Kiszka
2008-04-02 13:29 ` Robert McCullough
2008-04-05 15:41 ` Jan Kiszka
2008-04-09 18:31 ` Robert McCullough
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=47E41609.2090107@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=rob@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.