From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Thu, 1 Mar 2007 14:37:27 -0800
> Not necessary, since any network device must already allocated by > alloc_netdev() and it initializes the whole struct to 0 (NULL). It is in this case, unfortunately, HDLC protocols can be registers several times before the device is brought up and protocol changes become disallowed. So you can attach one, then a second one, and the second one has to explicitly initialize the pointers potentially set by the first one. On the other hand, you could say that it's the protocol ->detach() method's responsibility to NULL out these things instead of leaving references to function pointers of a module that's about the be unloaded. - 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