newbus flaw
M. Warner Losh
imp at bsdimp.com
Thu May 13 09:06:37 PDT 2004
In message: <xzpsme4bo5g.fsf at dwp.des.no>
des at des.no (Dag-Erling Smørgrav) writes:
: Doug Rabson <dfr at nlsystems.com> writes:
: > When the old module unloaded, its driver will have detached from the
: > device which it created. There is no reference to an old driver_t. Its
: > perfectly safe for the new driver to use the old device.
:
: so why do you say I "shouldn't reset the old driver and desc"?
subr_bus.c does that already on detach. The association between
devclass and device_t is done just prior to probe being called on a
per device basis.
Warner
More information about the freebsd-arch
mailing list