On Fri, 14 May 2004, Patrick Boettcher wrote: > Hi list, > > another question: > I would like to dump all urbs (send and receive) (and all their data) to > syslog or any other readable file for debugging reasons. > > Where is the best point in kernel to do this? I think I'm not the first > one who needs this, so I hope there is already a define to define or > something like that.
You're not the first person to bring it up, but no one has needed it badly enough to write and submit the code to do it. URBs being submitted can be captured in drivers/usb/core/urb.c:usb_submit_urb(), or if you prefer to capture only those that survive the initial error checking, in drivers/usb/core/hcd.c:hcd_submit_urb(). URBs being given back to the completion handler can be captured in drivers/usb/core/hcd.c:usb_hcd_giveback_urb(). There are comments present in the hcd.c file, but no more than that. Alan Stern ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
