Date: Sat, 22 May 2010 06:39:09 +0300 From: Alexander Motin <mav@FreeBSD.org> To: freebsd-arch@freebsd.org Subject: Device driver unload Message-ID: <4BF751DD.7020701@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi. I think we have some inconsistency around device driver unloading. When devices gets no driver during boot, bus driver receives BUS_PROBE_NOMATCH() call, allowing to power-down the device. But if device looses driver after module unload - nothing happens. So my question is: shouldn't we call either device_probe_and_attach() or BUS_PROBE_NOMATCH() for devices detached due to driver unload? If there is no alternative driver - device_probe_and_attach() also result in BUS_PROBE_NOMATCH() call. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF751DD.7020701>