Re: kldunload DIAGNOSTIC idea...

From: Doug Rabson (dfr_at_nlsystems.com)
Date: 07/21/04

  • Next message: Poul-Henning Kamp: "Re: kldunload DIAGNOSTIC idea..."
    To: Poul-Henning Kamp <phk@phk.freebsd.dk>
    Date: Wed, 21 Jul 2004 13:20:31 +0100
    
    

    On Wed, 2004-07-21 at 12:37, Poul-Henning Kamp wrote:
    > In message <1090408854.7114.8.camel@builder02.qubesoft.com>, Doug Rabson writes
    > :
    >
    > >> There are three parts to it, a refcount on cdevsw which tells us if
    > >> any thread is inside the driver using that route, a refcount on the
    > >> individual cdev and a linkage between the two.
    > >
    > >The device_busy() counter is still simplest (as long as there is a
    > >device_t at all). The implementation of devclass_delete_driver() will
    > >automatically veto the unload (when its called from
    > >driver_module_handler()).
    >
    > The problem is that I cannot find the device_t without dereferencing
    > the struct cdev (either for si_driver[12] or the dev_t) and by then
    > it is too late. There is no way we can avoid refcounting on the cdev.

    Ok, so you are going to handle this in specfs (or whatever replaces
    specfs)? That makes sense. Any ideas on how network interfaces should
    work in this?

    _______________________________________________
    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: Poul-Henning Kamp: "Re: kldunload DIAGNOSTIC idea..."

    Relevant Pages

    • Re: kldunload DIAGNOSTIC idea...
      ... On Wed, 2004-07-21 at 12:37, Poul-Henning Kamp wrote: ... > The problem is that I cannot find the device_t without dereferencing ... so you are going to handle this in specfs (or whatever replaces ... To unsubscribe, ...
      (freebsd-arch)
    • Re: Fatal trap 12 in open()
      ... I have just added a bandaid for this in specfs. ... to hear what happens in userland if you run with it. ... Poul-Henning Kamp ...
      (freebsd-current)