Date: Mon, 6 Oct 2003 19:02:03 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "Klaus-J.Wolf" <yanestra@seismic.de> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/57630: lptcontrol gives "device busy" if device turned off Message-ID: <20031006182829.Q8542@gamplex.bde.org> In-Reply-To: <20031006015801.1BBA8BB46@golulu.seismic.de> References: <20031006015801.1BBA8BB46@golulu.seismic.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 6 Oct 2003, Klaus-J.Wolf wrote: > >Description: > "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. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031006182829.Q8542>