LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   serial: ttyS0 - how to use the IRQ ?hi! (https://www.linuxquestions.org/questions/programming-9/serial-ttys0-how-to-use-the-irq-hi-225258/)

cardias 09-01-2004 09:56 AM

serial: ttyS0 - how to use the IRQ ?hi!
 
hi!
i've written a program to send and read raw data through serial port (/dev/ttyS0). it works fine, but during the read() i have to poll until a get the expected amount of bytes in the buffer. i would like to use the IRQ to wake up my read() process when the buffer is ready to be read.
i would appreciate any suggestions.

thanks,
cardias.

Hko 09-01-2004 11:10 AM

Can't use IRQ's in UNIX/Linux (unless you're doing kernel programming).
Check these pages for alternatives:
http://www.easysw.com/~mike/serial/
http://www.stokely.com/unix.serial.port.resources/


All times are GMT -5. The time now is 02:01 AM.