On Wed, Jul 25, 2007 at 12:30:07AM +0100, Al Viro wrote: > On Tue, Jul 24, 2007 at 04:26:21PM -0700, Brandon Philips wrote: > > Could you point me to an example you have in mind? > > > > I quickly searched through a handful of the PCI device drivers and > > couldn't find an example where the .remove function didn't do something > > to the tune of: > > > > unregister_netdev(dev); > > ... various un-allocs and cleanup ... > > free_netdev(dev) > > Now find the definition of free_netdev() and read it through, please.
PS: free_netdev() is certainly a bad name for that; the reasons are mostly historical, since it used to free the damn thing. When that became impossible (read: previous time net_device has meat device model; consequences had not been pretty), the patch series from hell had been big enough without renaming that one on top of everything else. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html