Re: Unloading USB driver while device is attached.

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Mon, 19 Jul 2004 16:35:36 -0600 (MDT)
In message: <20040719173819.GI57678_at_darkness.comp.waw.pl>
            Pawel Jakub Dawidek <pjd_at_freebsd.org> writes:
: On Mon, Jul 19, 2004 at 10:23:16AM -0700, Doug White wrote:
: +> Theres a discussion going on in -arch about making kldunload a bit more
: +> careful about cleaning up before detaching.  In the interim adding a
: +> method that just vetos any unload request would prevent this from
: +> occuring, but also preclude unloading the driver. :)
: 
: Yeah, but even on 'kldunload -f' it should be possible to clean up
: and avoid panic on next load.

kldunload -f isn't supported at this point :-) Or more accurately,
there's no hook into the driver system (newbus).  And even if there
was, usb has been poorly integrated into newbus in the past, so it
likely still would do bad things.  Eg, -f isn't going to save you.
umass should be fixed.

Warner
Received on Mon Jul 19 2004 - 20:35:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:02 UTC