[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070725012315.GX21668@ftp.linux.org.uk>
Date: Wed, 25 Jul 2007 02:23:15 +0100
From: Al Viro <viro@....linux.org.uk>
To: Brandon Philips <bphilips@...e.de>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/2][RFC] Update net core to use devres.
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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists