Subject: Re: Dial-in and Dial-out tty's
To: None <wrstuden@loki.stanford.edu>
From: Gordon W. Ross <gwr@mc.com>
List: tech-kern
Date: 04/10/1996 12:51:51
> From: wrstuden@loki.stanford.edu (Bill Studenmund)
> Date: Tue, 9 Apr 1996 23:36:53 -0700 (PDT)
> Howdy!
>
> I want to give the mac68k serial drivers support for dial-in and
> dial-out use of modems a la SunOS, and wanted to bounce my ideas off
> y'all (so that we don't end up with different ports doing incompatable
> things).
That support would be interesting, however there is some disagreement
over how it should be done. There may be a general way to support
that in a module common to several tty drivers.
> What SunOS does [...]
> To do this seems fairly simple.
One thing I've thought may help this is to manage TWO tty structs
(each line does two ttymalloc() calls) which allows the dial-out
and dial-in (getty) processes to each block on their own tty.
The other per-line code then needs a "mode bit" or pointer to
the current tty (in or out) so it talks to the right one.
Gordon