This is exactly how netdevice's WON'T be acting anymore.
All netdevice objects are allocated dynamically, and unregister
just means "disconnect" not "free". It marks the device as
dead, and NULLs out all the callbacks in the netdevice struct.
Any further attempt to use the device (via some PROCFS file I/O
or whatever) will just error out.
So we return long before all references go away, and the final
netdevice reference put does the de-allocation of the netdevice
Totally asynchronous, and it just works.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/