Hello, Pete

Can ccid be suit for any USB smart card reader? I will check it from
ccid's homepage. The "right" case I mean is that in kernel 2.6.11, my
device driver works find and the return value of copy_to_user is 4. So
I thought this is the "right" return value.

Is there any difference between copy_to_user on kernel 2.6.11 and
copy_to_user on kernel 2.6.8?

In which cases will copy_to_user system call return a non-zero value?

Best regards,
TowerGee

On 2/9/06, Pete Zaitcev <[EMAIL PROTECTED]> wrote:
> 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&kid3432&bid#0486&dat1642
_______________________________________________
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