Unloading USB driver while device is attached.

M. Warner Losh imp at bsdimp.com
Mon Jul 19 15:35:53 PDT 2004


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


More information about the freebsd-current mailing list