hello,

        At the moment when an usbdevfs urb completes, the programmer has the option of 
letting usbdevfs
deliver a RT signal to the task that submitted the urb.
        I would like to suggest not to deliver to the submitting task but to the 
'owner' of the file
descriptor. This can be set with fcntl(F_SETOWN) by the user (and be retrieved in
file->f_owner.pid). This would make it possible to have one thread to submit and one 
thread to
complete the urbs.
        Another optins is to allow the submitter to pass a pid as well as a signal 
number. Easier to
implement and much more flexible.
        I ran into this when I dug up my old uml hcd code. In my case, I want the 
signals to arrive in the
context of my own hcd thread (where i have a handler installed), but I want the urb 
submits done
from any thread that comes from the usb layer.
        If you have further questions, i will be happy to help. If you want a patch, i 
will be happy to
make one. The changes are trivial.
        If you have reasons not to do this, please let me know.

        J.

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to