Skip to contentSkip to conversation

asychronous RTS/DCE/CD notification

DISCUSSION Jeff 1 participant 1 message Mar 9, 2004 TTY layer and serial drivers

lore
Share & tools
lore

Jeff

author
#0 lore raw

Is it possible in th Linux serial driver to have the state change of serial control lines like CD notify a user space app rather then having to periodically poll?
I have an app that uses select() to wait for input from several different sources. Now, I also want to know when there is a state change in CD. Can the serial driver do this on it's on, like say via a /proc file. Or, do I have to break out of the select() every so ofton and use ioctl() to test CD's state. God I hate polling.

Jeff