Re: newbus flaw

From: Doug Rabson (dfr_at_nlsystems.com)
Date: 05/13/04

  • Next message: M. Warner Losh: "Re: newbus flaw"
    To: Dag-Erling Smørgrav <des@des.no>
    Date: Thu, 13 May 2004 13:34:32 +0100
    
    

    On Thu, 2004-05-13 at 11:46, Dag-Erling Smørgrav wrote:
    > Doug Rabson <dfr@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"?

    I didn't say that (that was John-Mark). When you create a device using
    something like device_add_child(parent, "foo", unit), the new device is
    just labelled as a 'fooN' - it has no reference to any 'foo' driver and
    should have since there may be several. The 'foo'ness of the device is
    used to match the device against a suitable driver at probe time.

    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: M. Warner Losh: "Re: newbus flaw"

    Relevant Pages