TTY Inquiry
Dave Olson
olson at fortune.UUCP
Fri Oct 11 11:21:06 AEST 1985
One approach that can be taken to allow bi-directional use
of tty lines is to have 2 minor #'s for each physical port.
This is the approach that was take at Fortune Systems. If
one has a tty port with maj/min of 8/0, then the device
with 8/128 would be the corresponding outgoing port. A few new
ioctl's were added to allow you to say that the outgoing line
should not complete open till carrier is up, the same for the
incoming line, or neither.
When either minor # is opened, attempts to open the other mode
fail with EBUSY. The changes that need to made are relatively
minor (but are unfortunately proprietary code, so I can't post
them).
Dave Olson
Fortune Systems
More information about the Comp.unix.wizards
mailing list