Subject: Re: autoconfiguration question
To: Gordon W. Ross <gwr@mc.com>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: tech-kern
Date: 05/20/1997 12:41:29
> 
> > From: wrstuden@loki.stanford.edu (Bill Studenmund)
> > Date: Tue, 20 May 1997 11:31:48 -0700 (PDT)
> 
> > What I want to do is have both zstty0 and zshdlc_stub0 attach to
> > zsc0 channel 0.
> 
> I thought I mentioned that you can not have both attach.
> You have to choose one or the other.

You did. But can't I work around it somehow? I thought the problem was
that no one's tried to do something this "special" yet. :-)

Maybe something where, if multiple devices "match" at the same
priority, they all get attached?

Jeremey suggested a while loop, which I think is a little off.
It'd work for the case of having zstty's and zshdlc's, but not
mice & keyboards.

Right now, the match functions return 2 for an exact config,
zstty and zshdlc return 1 for a wild card, and the mice & kbd's
return 0 for a *.

If you configure a mouse or a keyboard, you don't want a zstty*
or zshdlc* to attach to the port.

Right now, the first probed item of the highest priority, zstty*
here, gets attached. I'd like to be able to attach all items of
the highest priority. So ms at channel 0 won't get zstty* or zshdlc*,
but an unspecified channel will get both. Or if you're silly enough
to configure multiple items of zstty, ms, kbd, zshdlc on one channel,
you get them all (only conceivably useful if your sun or sparc might
get run headless so you can use the other two serial ports).

N.B. I'm not asking that config_found be changed to do this, just
if there's some way it can happen, maybe with a config_found_many?

Take care,

Bill