lpt module
Eric Jacobs
eric at theeric.com
Sat Jun 12 19:36:49 GMT 2004
On Sat, 12 Jun 2004 18:46:17 +0200
sebastian ssmoller <sebastian.ssmoller at 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)
More information about the freebsd-hackers
mailing list