linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: Question regarding Interrupt "delivery" to user mode process
@ 2005-03-25 17:19 Stephen Warren
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Warren @ 2005-03-25 17:19 UTC (permalink / raw)
  To: Caruso, Nick, linuxppc-embedded

This is certainly do-able.

Take a look at the Gelato project - they actually are able to do whole
user-mode device drivers for PCI. You can probably snag some of their
kernel->user-mode IRQ notification code for what you want.

http://www.gelato.unsw.edu.au/IA64wiki/UserLevelDrivers=20

--=20
Stephen Warren, Software Engineer, NVIDIA, Fort Collins, CO
swarren@nvidia.com        http://www.nvidia.com/
swarren@wwwdotorg.org     http://www.wwwdotorg.org/pgp.html

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Question regarding Interrupt "delivery" to user mode process
@ 2005-03-25 16:58 Caruso, Nick
  2005-03-25 17:40 ` Tolunay Orkun
  0 siblings, 1 reply; 8+ messages in thread
From: Caruso, Nick @ 2005-03-25 16:58 UTC (permalink / raw)
  To: linuxppc-embedded


Note that "delivery" is in quotes - I don't mean to actually deliver an
interrupt, but rather to wake the process when the interrupt occurs.

This is a broad question, but I'm hoping someone out there with real
experience in this area can comment on a design idea we're kicking
around.
If there's a better mailing list for asking this type of question,
please tell me!

We are building a device with an MPC5200 processor which needs to detect
incoming pulses at a 13 mSec rate.  We've got this incoming pulse wired
to an IRQ on the MPC5200 and we now need a method for detecting these
interrupts in a user mode process.

The design we're contemplating is a small character device driver in the
kernel that will allow a user mode process to perform a blocking read on
a file descriptor, and return from the read call whenever an interrupt
occurs. =20

We're not concerned (for the moment) with missing interrupts - we think
we can service them fast enough (we just need to record a
chronometer-type timestamp for some other incoming (serial) data).

Does this sound like a workable approach?  Does anyone know of a better
way?  My implementation plan is to derive something from the 3rd edition
Linux Device Drivers book "scull-pipe" device driver.

Any comments or suggestions would be greatly appreciated.

    thanks and best regards,
       Nick Caruso

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-28 16:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050325221320.004DC67AB2@ozlabs.org>
2005-03-28 16:29 ` Question regarding Interrupt "delivery" to user mode process David Bruce
2005-03-25 17:19 Stephen Warren
  -- strict thread matches above, loose matches on Subject: below --
2005-03-25 16:58 Caruso, Nick
2005-03-25 17:40 ` Tolunay Orkun
2005-03-25 18:31   ` Eugene Surovegin
2005-03-25 19:42     ` Tolunay Orkun
2005-03-25 20:05       ` Tolunay Orkun
2005-03-25 20:37         ` Eugene Surovegin

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).