usbatm : modprobe & rmmod
castet.matthieu at free.fr
Tue Jan 25 14:43:57 EST 2005
Roman Kagan wrote:
> Hi Matthieu,
> On Tue, 2005-01-25 at 18:49 +0100, matthieu castet wrote:
>>Well I would done it in disconnect : the urb are initialized in probe,
>>so in the init function from the usb layer, so i would remove it in the
>>cleaning function from usb layer : disconnect.
>>For me cleanup is about things done in cxacru_heavy_init.
> No, they are unrelated. The cleanup function is a callback registered
> with the refcounting mechanism to be called when the last reference to
> the instance is dropped. The references can live beyond disconnect
> (e.g. while the ATM device has open connections) and so should the
Well, I still don't understand : how the urb could be used if the device
is removed ?
The only things I agree that should be here is kfree(instance);
And it could be done in usbatm, if usbatm had kmalloc it.
More information about the Usbatm