bin/57630: lptcontrol gives "device busy" if device turned off
bde at zeta.org.au
Mon Oct 6 02:10:18 PDT 2003
The following reply was made to PR bin/57630; it has been noted by GNATS.
From: Bruce Evans <bde at zeta.org.au>
To: "Klaus-J.Wolf" <yanestra at seismic.de>
Cc: FreeBSD-gnats-submit at FreeBSD.org, freebsd-bugs at FreeBSD.org
Subject: Re: bin/57630: lptcontrol gives "device busy" if device turned off
Date: Mon, 6 Oct 2003 19:02:03 +1000 (EST)
On Mon, 6 Oct 2003, Klaus-J.Wolf wrote:
> "lptcontrol -ei -d /dev/lpt0" during boot time fails with "device busy"
> if the printer is turned off at that time.
lptcontrol should be run on the control device (not /dev/lptN).
Support for using the control device automatically was broken in
rev.1.8 of lptcontrol.c.
Existence of the documented control device was broken in FreeBSD-5
as part of devfs lossage. The documented control device is "/dev/lpctlN"
(see lptcontrol(8), but devfs creates "/dev/lptN.ctl".
The lpt driver also has support for control bits in the minor number.
(The control device is a special case of this -- it uses bit 0x80.)
There are 6 control bits, giving a total of 64 possible devices per
unit. devfs only creates 2 of these.
More information about the freebsd-bugs