On Thu, 9 Feb 2006 15:12:10 +0800, mail mail <[EMAIL PROTECTED]> wrote:

> I wrote a USB smart card device driver for kernel 2.6.

Why don't you use ccid?

> In the right case, the return value of copy_to_user should be 4 on my
> PC, and 4 is also the value on kernel 2.6.11 which can run the driver
> successfully.

How is this a "right" case? The return value of copy_to_user is the
number of bytes which were NOT copied. Any nonzero value is an error!

-- Pete


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to