Am Montag, 4. Juni 2007 13:58 schrieb Marcel Holtmann: > an alternate way would be to extend the usb_kill_anchored_urbs() with > its own complete handler that gets called for every anchored URB. This > would make it possible to cleanup the allocated buffers. I attached a > patch for that, too.
No, that would mean an URB could have both its original and the additional handler or only the additional handler called. That's increasing complexity, not lowering it. It seems to me that freeing buffers in usbcore is the logical conclusion of the pattern used in usb-skeleton. It may be used to avoid calling a completion handler at all. Regards Oliver ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel