On Tue, 2005-26-07 at 00:35 +0200, Thomas Graf wrote: > * jamal <[EMAIL PROTECTED]> 2005-07-25 18:28 > > So ifindex maybe the simplest way to go. If someone unloads a module > > for the netdevice then loads it back or pops out a hotplug net card > > and then pops it in - could we safely assume they are talking about > > another device? ;-> > > We can also use ifindex and hold a reference. We won't access input_dev > too often so a __dev_get_by_ifindex() won't be too expensive given the > number of interfaces is not too big but that's another issue.
Having centralized it like Dave is intending to makes it tricky on where to actually issue the hold/put. cheers, jamal - 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