Re: Need advice: writing a char driver

Alan Cox (alan@cymru.net)
Mon, 19 Feb 1996 16:59:25 +0000 (GMT)


> I'd like to write a driver for a small device that is attached on a
> bidirectional centronics port. Now I wonder if my driver should work
> on top of the lp driver, or use the hardware mutually exclusive. I'd
> favour the second approach, because other wise users could try to
> print while the device is definitely not capable of printing
> anything.

We already have this problem with the printer and the PLIP driver. A scheme
for arbitrating the port would be very useful (maybe even a tty like
'line disicipline').

Alan