+/** + * usb_kill_urb cancel all data transfers designated by an URB + * @urb: pointer to urb describing a previously submitted request
Wouldn't better semantics be "kill and bury" ... that is, even dropping the reference? An urb that's "killed" would not ever be re-used ... simpler. Completion handlers would just kill the urb, so would close(). Open() would allocate the urbs.
usb_kill_urb(mystate->urb); mystate->urb = 0;
As folk have noted, the primary use of this would be in disconnect() routines, or maybe close(), where re-use is not an issue ... so there's no need to making that new routine address the re-use case.
- Dave
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
