2005/10/25, Alan Stern <[EMAIL PROTECTED]>:
> On Tue, 25 Oct 2005, Franck wrote:
>
> > I noticed in hcd_submit_urb that we increments the reference count of
> > the usb device structure through usb_get_dev. This refence count seems
> > to be handle by usbcore, is that correct ?
>
> The reference count can be used by any piece of code that needs to prevent
> the data structure from being deallocated too early.
>
> > If so, why does
> > "sl811h->disable_endpoint" method call usb_put_dev ?
>
> To cancel out the call to usb_get_dev in sl811h_urb_enqueue.
>

OK, so now the question is why usb_get_dev is needed in
sl811h_urb_enqueue since hcd core take care of doing it ?

Thanks
--
               Franck


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to