Q: net_device refcnt?

From: Gary Cote (gary@cotecorner.com)
Date: Wed Mar 05 2003 - 11:49:02 EST


I'm rewriting a virtual network interface driver for Linux 2.4.x, and
am somewhat puzzled by the reference count in struct net_device.

Can someone please tell me what rules of thumb exist for when to
increment or decrement it (if any)?

The LDD book implies that drivers shouldn't have to mess with it. I notice
that few drivers/net modules seem concerned about it. But my predecessor
has dev_puts and dev_holds sprinkled throughout the driver and I'm missing
the underlying logic.

Thanks all

--
Gary Cote
gary@cotecorner.com 

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:01 EST