Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jun 2004 15:36:07 -0400
From:      Eric Jacobs <eric@theeric.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: lpt module
Message-ID:  <20040612153607.2634c989.eric@theeric.com>
In-Reply-To: <20040612184617.65b746f4.sebastian.ssmoller@gmx.net>
References:  <20040612184617.65b746f4.sebastian.ssmoller@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 12 Jun 2004 18:46:17 +0200
sebastian ssmoller <sebastian.ssmoller@gmx.net> wrote:

> 
> 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 (?)

The lpt driver needs a device_detach method in sys/ppbus/lpt.c.
Might want to look at sio_detach in sio for hints. It will need
to ensure that the device is closed, release bus resources, and
destroy its cdevs, and possibly some other non-obvious things
(haven't looked closely)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040612153607.2634c989.eric>