> count" function does an automatic free when the count hits zero.  Yes, it
> means that you need to manage the refcounts.  But is that such a problem?
> If nothing else, doing explicitly will clear up the ambiguities.

I dont think its a big problem. When you are passed an urb its referenced
by the caller becomes the basic rule. If you take a copy to store somewhere
you end up doing

        struct->saved_urb = urb_get(foo);

and eventually

        urb_put(struct->urb);

which will drop the refcount and if it hits zero, destroy it.

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to