From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 12 16:46:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FA5316A4CE for ; Sat, 12 Jun 2004 16:46:30 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 7E6FE43D54 for ; Sat, 12 Jun 2004 16:46:29 +0000 (GMT) (envelope-from sebastian.ssmoller@gmx.net) Received: (qmail 5457 invoked by uid 65534); 12 Jun 2004 16:46:19 -0000 Received: from pD9E82E89.dip.t-dialin.net (HELO tyrael.linnet) (217.232.46.137) by mail.gmx.net (mp011) with SMTP; 12 Jun 2004 18:46:19 +0200 X-Authenticated: #15005775 Date: Sat, 12 Jun 2004 18:46:17 +0200 From: sebastian ssmoller To: hackers@freebsd.org Message-Id: <20040612184617.65b746f4.sebastian.ssmoller@gmx.net> X-Mailer: Sylpheed version 0.9.9-gtk2-20040229 (GTK+ 2.4.1; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: lpt module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jun 2004 16:46:30 -0000 hi hackers, i have some trouble to setup my (stupid GDI) printer on freebsd. when i try to use lpt0 (lptest, lptcontrol, cat) i always get "device busy". so i decided to play around a bit with the lpt module. first thing i noticed when compiled lpt as module is: i cannot unload it (kldunload says: device not configured). somewhere in the net i read that this is an expected behaviour (as it is for usb afaik) because lpt module does not release memory properly (?) but of course i do not want to reboot my system each time i played a bit with the lpt code. so i am looking for a (temporary) "hack" to allow lpt to kldunload. I guess a good starting point would be the modevent handler for the lpt module, unfortunately i cannot find it :( so could someone point me to the right direction, please ? thanx! regards, seb ps: i am running current -- "Perfection is achieved, not when there is nothing left to add, but when there is nothing left to take away." --- Antoine de St. Exupery, Wind, Sand, and Stars, 1939