Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2004 19:15:05 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        arch@FreeBSD.org
Subject:   Re: kldunload DIAGNOSTIC idea... 
Message-ID:  <87517.1090430105@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 21 Jul 2004 11:10:45 MDT." <20040721.111045.88466992.imp@bsdimp.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20040721.111045.88466992.imp@bsdimp.com>, "M. Warner Losh" writes:

>We still ahve to wait for all threads with references to softc to
>drain out before we unload the module.  I see a small benefit to that,
>but it seems that the requirements for softc are stronger than ifnet
>and already cover it.  The detach routine of the driver could easily
>wait for the ifnet reference count to drop before returning for
>network drivers (heck the if_detach call could wait all references are
>gone, so that it isn't actually in the driver).  Where it is stored
>seems not to matter so much.

I have not studied the ifnet scenario in details, so I won't argue
about it.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87517.1090430105>