Hi! On Thu, 26 Aug 2004 14:46:54 -0500, Timur Tabi <timur.tabi@xxxxxxxxxxx> wrote: > Is there anything different about copy_to_user() in the 2.6 kernels? I have used the copy_to_user() in the 2.6 kernel (actually 2.6.5-mm1 gentoo kernel) and it works fine. A simple usage example: char text_data[]="Blah Blah Blah"; ssize_t text_read (struct file *filp, char *buf, size_t count, loff_t *pos) { ssize_t result=0; if (copy_to_user (buffer, text_data, sizeof (text_data)-1)) { result=-EFAULT; return; } else return result; } Regards, Shaks -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/