Q: net_device refcnt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

-
: 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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux