Menu

#2 poll on delta cts,cd,ring,dtr

open
nobody
None
5
2001-09-10
2001-09-10
Anonymous
No

I've been implementing serial port support for the Wine
project, and i've come across a stumbling block.

To emulate window's WaitCommEvent properly, i need to
be able to poll on CTS, CD, RI and DTR line deltas. I
know that an interrupt is generated if CLOCAL is not
set, but i can't see a way to poll on it through the
current tty_driver interface.

I am aware that TIOCGICOUNT and TIOCMIWAIT exist and
can be used to wait on hardware deltas, but it would be
very very helpful to me to be able to poll/select on
the same stuff.

I think the tty_driver interface needs to be extended
to support this... right?

Any other ideas how to do it? (i don't mind writing a
patch if somebody points me in the right direction)

Mike

Discussion

Monday.com Logo