LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   serial port interrupts in user space (https://www.linuxquestions.org/questions/programming-9/serial-port-interrupts-in-user-space-548370/)

pierre-luc 04-23-2007 03:33 PM

serial port interrupts in user space
 
Could a user space program be driven by hardware interrupts ? I'm looking of an efficient way to make my program (user space) react to some data written on the serial port by device. Otherwise... I'd maybe have to code my own driver that calls the other process by signals.

This is somewhat related to my previous (resolved) thread http://www.linuxquestions.org/questi...d.php?t=547580 but this is another matter...

Kristofer 04-24-2007 06:38 AM

This might get you going
 
Take a look at the following thread, seems pretty much like the question you are asking.
http://kerneltrap.org/node/7580

A simple example of just getting a notice on when new data has arrived.
3.3 Asynchronous Input in http://www.faqs.org/docs/Linux-HOWTO...ing-HOWTO.html

/Kristofer

pierre-luc 04-24-2007 09:48 PM

It seems to be exactly what I was searching for.

Thank you.


All times are GMT -5. The time now is 05:43 PM.