speedtch testatm.c,1.4,1.5

Roman Kagan rkagan at mail.ru
Fri Apr 8 08:11:26 EDT 2005


On Fri, Apr 08, 2005 at 01:45:18PM +0200, castet.matthieu at free.fr wrote:
> Selon Roman Kagan <rkagan at mail.ru>:
> 
> > BTW do we really need to manually release interfaces we've claimed?
> > Won't they get disconnect()-ed by the usb core?
> 
> It's how it is done in ueagle-atm (we don't release interface).
> We just check we do the deinit only once.

But that has nasty consequences indeed, as Duncan already mentioned.
Assume that you unbind the driver from one of your interfaces via usbfs, which
will make the driver do all the shutdown stuff.  But other interfaces
remain bound to the driver and maintain dangling references - not very
nice.

Roman.



More information about the Usbatm mailing list