linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "M. Koehrer" <mathias_koehrer@arcor.de>
To: linux-rt-users@vger.kernel.org
Subject: Triggering UserCode from KernelModule (IRQ)
Date: Wed, 22 Apr 2009 16:14:48 +0200 (CEST)	[thread overview]
Message-ID: <6669682.1240409688443.JavaMail.ngmail@webmail19.ha2.local> (raw)

Hi all!

I am currently evaluting the RT_PREEMPT kernel as a replacement for a Xenomai based real time application.
(Intel Core2Duo PCs).
So far, everything works really fine and the performance is about the same as with Xenomai.
Great work!

However, I have one question:
I have a PCI hardware I/O board that exchanges data with the user mode 
directly (by using mmap), this works fine.
However, there is one operation mode that uses interrupts to signal incoming data.
The interrupt handler is realized as a tiny kernel module (that one that provides also 
the mmap for the user mode application).
Now I am not sure how the signalling of the IRQ from kernel to user mode could be realized 
best (in terms of low latency).

The "classical" approach for this task is to provide a character driver with a .poll file operation.
In Xenomai I could use a semaphore that was accessible from kernel and user space for this.
What is the best way in the RT_PREEMPT "world"? 

Thanks a lot for all feedback on this question.

Regards

Mathias


-- 
Mathias Koehrer
mathias_koehrer@arcor.de


Arcor.de Gaming Area - kostenfrei daddeln bis der Arzt kommt!
Jetzt checken und aus über 80 Spielen wählen!
http://www.arcor.de/footer-gaming/
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2009-04-22 14:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200904221628.27659.claus.gindhart@kontron.com>
2009-04-22 14:14 ` M. Koehrer [this message]
2009-04-22 14:36   ` Triggering UserCode from KernelModule (IRQ) Daniel Walker
2009-04-22 19:59   ` Robert Schwebel
2009-04-23  6:36   ` M. Koehrer

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=6669682.1240409688443.JavaMail.ngmail@webmail19.ha2.local \
    --to=mathias_koehrer@arcor.de \
    --cc=linux-rt-users@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).