Re: [PATCH] 2.5.31-serport

David S. Miller (davem@redhat.com)
Fri, 30 Aug 2002 15:43:50 -0700 (PDT)


From: Vojtech Pavlik <vojtech@suse.cz>
Date: Sat, 31 Aug 2002 00:36:18 +0200

No, but using serport.c, you can bind a serio to a tty via a line
discipline, for example if you want a PC serial mouse on /dev/ttyS0 to
talk to sermouse.c via serio. I don't like the approach much, I hope(d) we
could switch somewhere below the tty layer, but it sort of works, and
maybe will have the bugs fixed sooner or later.

So how about this:

1) When SERIO device is claimed, we fail of TTY copy is opened
by any user.

2) Once we allow SERIO device to be claimed, we prevent opens
of TTY copy.

I guess this is sort of what Russell is recommending.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/