Am Sonntag, 26. Februar 2006 10:25 schrieb Hossein Aminaiee:
> Hi,
> Using the usb-skeleton driver, I can successfully read from my own USB
> device in user mode. I have added a function with the name
> 'fpga_update_read_buffer' to the driver to read from the device in
> kernel mode using the 'usb_bulk_msg' commad (the code is somehow the
> same as skel_read). I can call the function and get the data from the
> device when I call it in the module_init. But whenever I use the
> function in a thread I receive a  Kernel Panic. Could  anyone solve the
> problem? My code is attached to the email.

A kernel thread cannot do a copy_to_user() as it has no user space.

        Regards
                Oliver


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to