Hi, Luís Henriques wrote: > On Wednesday 21 November 2001 10:06 am, you wrote: > > Hi, > > > > Did you check for the return code of copy_to_user() [it indicates the > > number of bytes that remain to be written, i.e. successful completion is > > indicated by a return value 0]? > > Yes - it returns the correct number of bytes! But it didn't succedd If 'correct number of bytes' means the number of bytes you requested to copy, the return value indicates a failure of copy_to_user(). As mentioned, the return value of copy_to_user() indicates the number of bytes that have *not* been transfered, i.e. success is indicated by a return value 0. regards Martin -- Supercomputing System AG email: maletinsky@scs.ch Martin Maletinsky phone: +41 (0)1 445 16 05 Technoparkstrasse 1 fax: +41 (0)1 445 16 10 CH-8005 Zurich -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/