Re: dev->destructor
From: Stephen Hemminger <hidden>
Date: 2003-05-05 16:08:20
On Sat, 03 May 2003 14:07:41 +1000 Rusty Russell [off-list ref] wrote:
In message [ref] you write:quoted
From: Rusty Russell [off-list ref] Date: Fri, 02 May 2003 15:25:15 +1000 If this is true, I think you can use the module reference count only, and your code will be faster, too. I can prepare the patch for you later tonight, to see how it looks. And where do we get the counter from when dev->owner is NULL (ie. non-modular)? We need the reference counting regardless of whether the device is implemented statically in the kernel or modular.But Alexey said you can only call unregister_netdev from module unload, ie. if not a module, it can't be unloaded, hence no refcount needed. I wrote the above paragraph because I'm not sure if I understood Alexey correctly?
There are several flavors of pseudo-network devices like bridging and VLAN that dynamically create/destroy netdev's even when they are not modules.